Cordova:在Mac上将编译设置传递给remotebuild [英] Cordova: pass compile settings to remotebuild on Mac
问题描述
我有一个Cordova项目,但启动时出现问题,该应用程序已启动,但立即关闭,没有任何异常.
I had a Cordova project with a issue on startup, the app starts but closed immediately without any exception.
当我在Mac上的XCode中打开项目并在本机设备(iPad)上开始调试时,我注意到一个例外:
When I open the the project in XCode on a mac and start debugging on a native device (iPad) I noticed an exception:
"nsinvalidargumentexcept cordovaSettingsforkey ..."
"nsinvalidargumentexception cordovaSettingsforkey..."
我在这里找到了解决方法 https://stackoverflow.com/questions/36227026/issues-when-add-cordova-to-my-existing-ios-project-cordovasettingforkey-unre/36456572#36456572
I found a solution here https://stackoverflow.com/questions/36227026/issues-when-add-cordova-to-my-existing-ios-project-cordovasettingforkey-unre/36456572#36456572
并按照建议通过Xcode将-ObjC添加到项目设置"Other Linker Flags"中.在构建设置/链接中
and added as suggested the -ObjC via Xcode to the project setting "Other Linker Flags" in build setting/Linking
该应用程序按预期运行.
The app worked as expected.
现在的问题:如何将编译时间设置添加到remotebuild配置或通过VS2015/Taco项目?
Now the question: How can i add a compile time setting to the remotebuild configuration or via the VS2015/Taco project?
推荐答案
>>
>>Now the question: How can i add a compile time setting to the remotebuild configuration or via the VS2015/Taco project?
据我所知,Cordova目前没有这样的设置.只能在XCode中设置.
As far as I know, currently there is no such setting for Cordova. This can only be set in XCode.
最好的问候,
夏维斯
这篇关于Cordova:在Mac上将编译设置传递给remotebuild的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!