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?
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.
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
....
Most helpful comment
@mdiep can we workaround it by manually doing the line below for each test framework?
carthage build Nimble --platform iOS --configuration Debug --verboseBy the output it seems that it is working, taking
-configuration Debugas xcodebuild argument