我从 Adobe 的 AccessEnabler 两个本地库(ios 和 Android)中创建了一个统一的 API。现在Android绑定工作了,没问题。然而,iOS 有问题。绑定项目构建并遵守没有问题,但是当我将它添加到我的示例(或任何示例)时,测试应用程序会构建和编译。但是当我启动应用程序时,它只是在启动时崩溃而没有输出。我必须深入研究 Mac 上的控制台日志才能找到:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD, [0x1] Library missing
Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_FALLBACK_LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_FALLBACK_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks
Dyld Error Message:
Library not loaded: @rpath/AccessEnabler.framework/AccessEnabler
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/E4B4E1EE-EA10-4E82-AD1E-2E8F3FD5BB79/data/Containers/Bundle/Application/47241A8D-5E85-4E8A-990C-387A1FF4E493/AccessEnablerSample.iOS.app/AccessEnablerSample.iOS
Reason: image not found
Binary Images:
0x10cf84000 - 0x10d4e7ff3 +com.golfchannel.AccessEnablerSample (1.0 - 1.0) <EB64A6F8-4E10-352A-9E9E-C75EE2D5A7EF> /Users/USER/Library/Developer/CoreSimulator/Devices/E4B4E1EE-EA10-4E82-AD1E-2E8F3FD5BB79/data/Containers/Bundle/Application/47241A8D-5E85-4E8A-990C-387A1FF4E493/AccessEnablerSample.iOS.app/AccessEnablerSample.iOS
0x10d8c0000 - 0x10d8f3757 +dyld_sim (551.1) <A356F82B-146B-353D-9FC1-250800B6B67C> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
0x1153d2000 - 0x11541cacf dyld (551.4) <8A72DE9C-A136-3506-AA02-4BA2B82DCAF3> /usr/lib/dyld
我已经阅读了有关绑定过程的所有 Xamarin 文档,以及这里和 Xamarin 论坛上的无数线程,但什么也没有。大多数错误都指向涉及 iOS 系统未嵌入框架的问题。
要添加,我尝试了(.framework 和 .a)两种方式以及手动添加它或在“Native References”部分中添加它。更糟糕的是,有一个旧版本的 SDK 不久前被另一个同事绑定,它可以工作。但我需要使用最新的,因为他们在内部添加和重组了一些东西。
任何帮助将不胜感激。