Xcode: Conditional Build Settings based on architecture (Device (ARM) vs Simulator (i386))

前端 未结 7 1600
陌清茗
陌清茗 2020-12-07 23:22

I\'m building an iPhone app that has to run on both the simulator and the device. However I\'m using an externally compiled library that has one version for the simulator an

7条回答
  •  有刺的猬
    2020-12-07 23:26

    For option 1 (see Louis Gerbarg answer) in Xcode 3.2.1 select the "Other Linker Flags" and then select "Add Build Setting Condition" from the dropdown menu at the lower left of the build setting window. See cdespinosa answer for "Other Linker Flags" syntax)

    Or you can also "Add Build Setting Condition" to "Library Search Paths" if you have the device/simulator libraries in separate directories.

提交回复
热议问题