サードパーティのフレームワークを組み込む必要があるAppceleratorモジュールをビルドしています。私はドキュメントを読んで、少しでも成功すればそれを完全にフォローしようとしました。Appcelerator iOSモジュールがサードパーティのフレームワークでクラッシュする
アプリケーションID、バージョン1.0
フレームワークはiPhone /プラットフォームに配置されているcom.example.app あります。次のように 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
私のクラスのすべてが私のターゲットに含まれています。モジュールはXCodeで警告またはエラーなしで構築されます。私はAppceleratorで間違いなくそれを公開することができます。簡単なテストアプリケーションを起動すると、モジュールが読み込まれるかどうかを確認するために、正常にビルドされ、すぐにクラッシュします。 Appceleratorのは、次のように読み取るクラッシュログを、refrences:
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のに加えました。
他に何を確認するか教えてください。これを解決するために何を共有するべきか教えてください。
これは8日後ですが、私はまだAppceleratorで動作する外部フレームワークを取得できません。私はいつも "Path not found:$(SRCROOT)/../../ modules/iphone/disi.corretrak.facrec/1.0/platform"というエラーが表示されます。このパスは正しいですか?私は自分自身でその道を作るために何かをする必要がありますか? – falt86