When I build fresh project using Xcode it works fine on device/simulator.
But if I make any changes to the cpp files, rebuilds it and try to run on device/simulator, Xcode throw’s an error-
>Xcode cannor run using selected device. Choose a destination with a supported architecture in order to run on this device.
To make it work, every time I have to delete build binaries (inside XCode>Derived Data folder), restart Xcode and take fresh build.
Does anyone knows whats wrong with my environment?
More Details:
# I know this error is related to armv6 armv7 and mismatching device architecture. But as it works first time and stops working from second build onwards, means it doesn’t look like device architecture mismatch issue.
# If the project is not using cocos2d-x, then I don’t see such issue.
# Compiler: Apple LLVM Compiler 4.2
Any kind of help is very much appreciated.
Thanks