简体   繁体   中英

How do I force the Xcode compiler to ignore a library when building for the iOS simulator

I am getting a series of linker errors when building a specific library for the iOS simulator. The source of the issue seems to the be architecture that the library was build for which seems to cause issue when compiling for the iOS simulator. The specific library is the Aurasma augmented reality library.

Although I do have some code that is dependent on that library I could easily use an #ifdef statement to only use that code when NOT in the iOS simulator.

I have attempted some solutions using a -weak_library linker flag with no specific progress or success.

In XCode, you can configure a separate library list for each iOS\/simulator sdk. Here are the step to configure this:

  • <\/li>
  • <\/li>
  • <\/li>
  • <\/li><\/ul>

    Same technique can be applied for other settings in XCode for a target.

    "

我遇到了同样的问题,我所做的是将统一项目配置为编译为模拟器 SDK,然后在 Xcode 中我将目标>构建设置更改为编译为发布,如果我记得清楚并且宾果游戏项目工作并且我有未签名ipa 文件。

"

\/\/:configuration = ReleaseForProfiling CODE_SIGN_IDENTITY = CODE_SIGN_IDENTITY[sdk=iphoneos*] = DEVELOPMENT_TEAM = PROVISIONING_PROFILE_SPECIFIER[sdk=iphonesimulator*] = PROVISIONING_PROFILE[sdk=iphonesimulator*] =

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM