Comments (7)
If I understand it correctly, this means that the NS_DESIGNATED_INITIALIZER
macro that has been added by @samirGuerdah on PR #79 and merged on latest 3.1.9
version does not work with older SDKs, especially SDK 7.1 that you seem to use when compiling your project with Travis.
I'll have to get a fix for that, thanks for notifying!
from ohhttpstubs.
@nikolajpedersen can you confirm that when it passes locally when building with Xcode, you are actually building with the SDK 8.x (Xcode 6.x)?
Whereas you probably didn't explicitly configure your Travis build to use on Xcode 6 and especially the latest SDK — so travis may use a VM with Xcode 5 when building your project —… or your .travis.yml
mention the SDK 7.0 explicitly in the script you make it run, explaining why the command you run contains -sdk iphonesimulator7.1
?
from ohhttpstubs.
Newly published version 3.1.10
should fix the issue.
(@nikolajpedersen can you confirm this?)
from ohhttpstubs.
I removed -sdk iphonesimulator7.1 \ from my test script and then it works.. thanks :)
from ohhttpstubs.
I probably forgot to add the fix to another header. I won't have time to investigate this until mid-January once back home with my Mac (but don't hesitate to create a PR to add the fix on your end so I can merge it quickly in one click from my iPad if you cannot wait that long, the fix seems quite easy)
By the way, why do you guys still need to compile your code using a different SDK than the "LatestSDK"? I mean, why forcing to use the older, obsoleted SDK (SDK7), instead of using SDK8? The only reason why one may happen to still build using an old SDK is if one use an old version of Xcode, but even then, you should simply specify -sdk iphonesimulator
and not sdk iphonesimulator7.1
and Xcode will automatically select the latest SDK. Then if you intend to test on the iPhone Simulator 7.1 for testing your app, you can use the -destination
flag of xcodebuild
for example to select the OS version of the simulator on which you want to test.
The version of the SDK to compile against is NOT the same as the version of the simulator you want to test onto, so don't use an old SDK to test on an old simulator, that's not how it is done, and that's not how Xcode does it when you test and run your code inside Xcode, event when you run your code on a 7.1 simulator, Xcode still uses the Latest SDK (8.1 for now).
from ohhttpstubs.
👍 it's correct I added -destination 'platform=iOS Simulator,name=iPhone 5s,OS=7.1' \
from ohhttpstubs.
Thanks a lot. It works now.
I also had to change Travis conf:
"osx_image: xcode61" to "osx_image: xcode611"
Thanks for responding so fast - great job on this module!
from ohhttpstubs.
Related Issues (20)
- Xcode 12 - Warnings related to iOS 8 support (Swift Package Manager) HOT 6
- Mocktail support HOT 2
- pod 'AFNetworking', '~> 3.0'
- Incorrect example for onStubActivation on Usage Examples page
- [wiki] OHHTTPStubsResponse to HTTPStubsResponse with Swift HOT 4
- Module 'OHHTTPStubs' has no member named 'removeAllStubs' in 9.0.0 HOT 2
- Xcode Analyze: Logic error
- N HOT 1
- Travis CI has seemed to be moved. HOT 3
- How to use in a UITest HOT 9
- OHHTTPStubs with SPM in Xcode 12.5 HOT 1
- Fluent API for stubbing
- how do i use it HOT 1
- Liscense HOT 1
- 4 da world HOT 1
- - [ ] Submitting a maybeaplle @mtodd []()![image](https://user-images.githubusercontent.com/122186144/230750410-f43c3ffb-f6a7-4bd4-9970-8b065670ea28.jpeg)@craystyle1212
- Won't build with Carthage and Xcode 14.3 HOT 7
- App Crashes on Device When OHHTTPStubsSwift Added to iOS Framework via Swift Package Manager HOT 1
- FEATURE REQUEST: Ability to control response stream
- `canInitWithRequest` not called in Xcode 15 preventing stubbing being setup correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ohhttpstubs.