Code Monkey home page Code Monkey logo

Comments (7)

AliSoftware avatar AliSoftware commented on May 12, 2024

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.

AliSoftware avatar AliSoftware commented on May 12, 2024

@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.

AliSoftware avatar AliSoftware commented on May 12, 2024

Newly published version 3.1.10 should fix the issue.

(@nikolajpedersen can you confirm this?)

from ohhttpstubs.

kmilitagaitan avatar kmilitagaitan commented on May 12, 2024

I removed -sdk iphonesimulator7.1 \ from my test script and then it works.. thanks :)

from ohhttpstubs.

AliSoftware avatar AliSoftware commented on May 12, 2024

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.

kmilitagaitan avatar kmilitagaitan commented on May 12, 2024

👍 it's correct I added -destination 'platform=iOS Simulator,name=iPhone 5s,OS=7.1' \

from ohhttpstubs.

nikolajpedersen avatar nikolajpedersen commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.