2

シナリオ:シミュレータ (i386 env) 内で動作しない iOS プロジェクトで静的ライブラリを使用しています。

Goal: I would like to be able to isolate the library-dependent code and build a) only for the simulator so I can continue with the rest of the project functioning; and b) the regular build for the device.

This is what I've done:
1) I created another target (via duplicate), and removed the static library and dependent links & builds.
2) Commented out the reference code in the source.

Question: Is it possible to conditionally compile a line of code per scenario or must I always have to comment-out the sensitive code?

4

0 に答える 0