Appcelerator iOS模块在第三方框架下崩溃 [英] Appcelerator iOS module crashes with 3rd party framework

查看:694
本文介绍了Appcelerator iOS模块在第三方框架下崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个Appcelerator模块,该模块需要包含第3方框架.我阅读了文档,并试图完全遵循它,但收效甚微.

I am building an Appcelerator module, that requires 3rd party frameworks to be included. I read the documentation and tried to follow it perfectly with little success.

应用程序ID为com.example.app 版本是1.0

The app id is com.example.app The version is 1.0

这些框架位于iphone/平台中. module.xconfig如下:

The frameworks are located in iphone/platform. The module.xconfig is as follows:

FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/com.example.app/1.0/platform /Library/Application\ Support/Titanium/modules/iphone/com.example.app/1.0/platform ~/Library/Application\ Support/Titanium/modules/iphone/com.example.app/1.0/platform

OTHER_LDFLAGS=$(inherited) -framework NBiometricClient -framework NBiometrics -framework NCluster -framework NCore -framework NDevices -framework NLicensing -framework NMedia -framework NMediaProc

我的所有课程都包含在我的目标中.该模块的构建不会在XCode中发出警告或错误.我可以在Appcelerator中发布它而不会出现错误.当我启动一个简单的测试应用程序时,要查看该模块是否可以加载,它会成功构建,然后立即崩溃. Appcelerator刷新崩溃日志,其内容如下:

All of my classes are included in my target. the module builds without warning or error in XCode. I can publish it without error in Appcelerator. When i launch a simple test application, to see if the module will load, it builds successfully, and then crashes immediately. Appcelerator refrences a crash log, which reads as follows:

Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_FALLBACK_LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
DYLD_FALLBACK_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks
DYLD_SHARED_REGION=avoid

Dyld Error Message:
Library not loaded: @rpath/NBiometricClient.framework/NBiometricClient
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/95DD514F-E8D1-4982-B845-6CAC27369DC8/data/Containers/Bundle/Application/355A1ABF-7036-4285-90B5-96C8F88DAD36/testHarness.app/testHarness
Reason: image not found

Binary Images:
   0x10bb29000 -        0x10c1fffff +com.testHarness (1.1 - 1.1) <4F498C98-61BA-3ED7-99B5-F2F9649FD94A> /Users/USER/Library/Developer/CoreSimulator/Devices/95DD514F-E8D1-4982-B845-6CAC27369DC8/data/Containers/Bundle/Application/355A1ABF-7036-4285-90B5-96C8F88DAD36/testHarness.app/testHarness
   0x10c571000 -        0x10c59825f +dyld_sim (360.19) <0BF161D7-EFA9-3CBE-AE2B-84F9A70FC853> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim
0x7fff624c8000 -     0x7fff624ff007  dyld (360.19) <9D05FDF4-65CE-3B53-86D4-ABE1A5BF35F3> /usr/lib/dyld

直接从模块的platform文件夹将框架添加到XCode.

The frameworks were added to XCode directly from the platform folder of the module.

请让我知道要检查的内容,或者让我知道为解决此问题应分享的内容.

Please let me know what else to check or let me know what I should share to get this resolved.

推荐答案

您是否确保将框架放置在<your_module>/platform中并从您的Xcode项目内部对其进行了引用?检查 ti.googlemaps 我在其中使用GoogleMaps.framework的方法.

Did you make sure to place the framework in <your_module>/platform and referenced it from their inside your Xcode project? Check ti.googlemaps where I'm doing the same with the GoogleMaps.framework.

这篇关于Appcelerator iOS模块在第三方框架下崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆