Appcelerator iOS模块与第三方框架崩溃

Appcelerator iOS模块与第三方框架崩溃,ios,xcode,module,appcelerator,appcelerator-titanium,Ios,Xcode,Module,Appcelerator,Appcelerator Titanium,我正在构建一个Appcelerator模块,它需要包括第三方框架。我阅读了文档并试图完美地遵循它,但收效甚微 应用程序id为com.example.app 版本是1.0 这些框架位于iphone/平台中。 module.xconfig如下所示: FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/com.example.app/1.0/platform /Library/Application\ Support/Titanium/modu

我正在构建一个Appcelerator模块,它需要包括第三方框架。我阅读了文档并试图完美地遵循它,但收效甚微

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

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

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
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
我所有的课程都包含在我的目标中。模块在XCode中生成时没有警告或错误。我可以在Appcelerator中无误地发布它。当我启动一个简单的测试应用程序时,为了查看模块是否会加载,它成功构建,然后立即崩溃。Appcelerator引用了一个崩溃日志,其内容如下:

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
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
特定于应用程序的信息:
dyld:启动、加载依赖库
DYLD\u FALLBACK\u LIBRARY\u 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\u FALLBACK\u FRAMEWORK\u PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks
DYLD_共享_区域=避免
Dyld错误消息:
未加载库:@rpath/NBiometricClient.framework/NBiometricClient
参考自:/Users/USER/Library/Developer/CoreSimulator/Devices/95DD514F-E8D1-4982-B845-6CAC27369DC8/data/Containers/Bundle/Application/355A1ABF-7036-4285-90B5-96C8F88DAD36/testHarness.app/testHarness
原因:找不到图像
二进制图像:
0x10bb29000-0x10C1FFFF+com.testHarness(1.1-1.1)/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)/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyldêsim
0x7fff624c8000-0x7fff624ff007 dyld(360.19)/usr/lib/dyld
这些框架直接从模块的平台文件夹添加到XCode中


请让我知道还有什么需要检查,或者让我知道我应该分享什么来解决这个问题

您是否确保将框架放置在
/platform
中,并从Xcode项目中引用它?检查我在哪里用GoogleMaps.framework做同样的事情

我注意到你的项目有两点。首先,您的文件夹结构与Appcelerator默认安装的文件夹结构不同。我有/iphone/platform。您有/ios/platform/ios。其次,您的googlemaps.framework实际上被称为googlemaps.bundle。为什么路径和名称不同?另外,我在崩溃报告中看到:“[TRACE]ld:warning:directory not found for option'-F/Users/DISI/Documents/Appcelerator\u Studio\u Workspace/testHarness/build/iphone/../modules/iphone/DISI.corretrak.facrec/1.0/platform'”这个.././部分是什么意思,为什么找不到这个路径?这条路径不是自动构建的吗?现在已经8天了,我仍然无法让外部框架在Appcelerator中工作。我总是遇到错误“路径未找到:$(SRCROOT)/../modules/iphone/disi.corretrak.facrec/1.0/platform”此路径正确吗?我需要自己做些什么来创建这条路径吗?