Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using Carthage: "Nimble was compiled with optimization - stepping may behave oddly; variables may not be available." #1135

Closed
fatuhoku opened this issue Feb 18, 2016 · 2 comments
Labels

Comments

@fatuhoku
Copy link

https://www.google.co.uk/?q="carthage"+was+compiled+with+optimization+-+stepping+may+behave+oddly%3B+variables+may+not+be+available

How do I prevent optimisation from happening in the build phase for test frameworks?

@mdiep mdiep added the question label Feb 18, 2016
@mdiep
Copy link
Member

mdiep commented Feb 18, 2016

You can use Carthage's --configuration flag to build all frameworks using the Debug configuration. There's not currently a way to do this only for test frameworks.

But that should only affect the innards of Nimble. You should still be able to step through your test code.

@polqf
Copy link

polqf commented Feb 19, 2016

There's not currently a way to do this only for test frameworks

@mdiep can we workaround it by manually doing the line below for each test framework?

carthage build Nimble --platform iOS --configuration Debug --verbose

By the output it seems that it is working, taking -configuration Debug as xcodebuild argument

/usr/bin/xcrun xcodebuild -project /Users/polquintana/XCode/Redbooth/teambox-ios-universal/redbooth-ios-sdk/Carthage/Checkouts/Nimble/Nimble.xcodeproj -scheme Nimble-iOS -configuration Debug -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= clean
....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants