开发者

How can I build for iphone simulator when using BluetoothManager.framework?

I dragged the folder BluetoothManager.framework from finder into the Frameworks group in project navigator. It builds successfully for device, but can't find the framework when I build for simulator. I understand that simulator doesn't support bluetooth, but I need to have it buildable for simulator, so that other people can continue testing their part in simulator. How can I exclude the framework from linking when building for simulator? 开发者_JAVA百科Thank you!


Weaklink the library, add exclude any bluetooth code with compiler directives :

#if !TARGET_IPHONE_SIMULATOR 
    //Bluetooth code 
#endif 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜