How to exclude frames in a simulator in Xcode

How can I exclude libraries that I compiled only for iOS device architecture (libssh2, etc.) from the Xcode project when I compile the application to run on the simulator?

+5
source share
1 answer

I know this is an old question, but if someone is still looking for an answer, you can use Loose Link to indicate that some libraries are optional.

See this answer for a weak / optional link in Xcode 4

, , ,

#if TARGET_IPHONE_SIMULATOR

  NSLog(@"I'm in the simulator");

#endif

,

  [[UIDevice currentDevice] model]

, .

+1

All Articles