我绑定的Xcode项目是这样的:本地连接错误:框架找不到架构arm64
然后,我创建了一个静态库包含在DevQPSDKCore
目录代码产生文库libQupaiSDK.a
最后,创建了一个新的Xamarin结合文库
个libQupaiSDK.linkwith.cs
运行该项目得到错误:
MTOUCH: error MT5209: Native linking error: framework not found QPSDKCore for architecture arm64
MTOUCH: error MT5202: Native linking failed. Please review the build log.
当我成功删除libQupaiSDK.a
,该项目运行。
我无法从xamarin日志中得到原因,任何机构都可以帮助我,谢谢。
更新:
这两个库是脂肪库。
$ lipo -info libQupaiSDK.a
Architectures in the fat file: libQupaiSDK.a are: i386 armv7 x86_64 arm64
$ lipo -info QPSDKCore.a
Architectures in the fat file: QPSDKCore.a are: armv7 i386 x86_64 arm64
Xamarin工作室6.1.2(构建44)
的Xcode 8.1(8B62)
顺便说一句,-lz
是dylib
或Xamarin.iOS
tdb
?
如果您运行'xcrun -sdk iphoneos lipo -info libQupaiSDK.a',输出是什么? – SushiHangover
@SushiHangover胖库:胖文件中的体系结构:libQupaiSDK.a是:i386 armv7 x86_64 arm64 –