Xcode 打包ipa 提示 DllImport 相关错误,求助()

Ld /Users/mac/Library/Developer/Xcode/DerivedData/Unity-iPhone-cissikohkccokoabfyqmnkglkyja/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/majiang.app/majiang normal arm64

ld: warning: arm64 function not 4-byte aligned: ltmp0 from /20180417/client/XCode/Libraries/libiPhone-lib.a(unwind_test_arm64.o)
ld: warning: arm64 function not 4-byte aligned: unwind_tester from /20180417/client/XCode/Libraries/libiPhone-lib.a(unwind_test_arm64.o)
Undefined symbols for architecture arm64:
"_aliPay", referenced from:
_IOSSdkInterface_aliPay_m504576857 in Bulk_Assembly-CSharp_4.o
(maybe you meant: _IOSSdkInterface_aliPay_m504576857)
"_shareBitmap", referenced from:
_IOSSdkInterface_shareBitmap_m300761962 in Bulk_Assembly-CSharp_4.o
_MatchResultViewMediator_U3COnShaderClickU3Em
_2_m2812956458 in Bulk_Assembly-CSharp_4.o
RoomResultViewMediator_U3COnShaderClickU3Em_1_m3703934729 in Bulk_Assembly-CSharp_4.o
RankView_U3CShareHandlerU3Em_1_m1822946873 in Bulk_Assembly-CSharp_4.o
(maybe you meant: _IOSSdkInterface_shareBitmap_m300761962)
"_otherPay", referenced from:
_IOSSdkInterface_otherPay_m3513412629 in Bulk_Assembly-CSharp_4.o
(maybe you meant: _IOSSdkInterface_otherPay_m3513412629)
"_UpdateApp", referenced from:
_IOSSdkInterface_UpdateApp_m1364561657 in Bulk_Assembly-CSharp_4.o
(maybe you meant: _IOSSdkInterface_UpdateApp_m1364561657)
"_weChatPay", referenced from:
_IOSSdkInterface_weChatPay_m3549064381 in Bulk_Assembly-CSharp_4.o
(maybe you meant: _IOSSdkInterface_weChatPay_m3549064381)
"_shareWeChat", referenced from:
_IOSSdkInterface_shareWeChat_m208762407 in Bulk_Assembly-CSharp_4.o
(maybe you meant: _IOSSdkInterface_shareWeChat_m208762407)
"_GetVersion", referenced from:
_IOSSdkInterface_GetVersion_m3424449706 in Bulk_Assembly-CSharp_4.o
(maybe you meant: _FMOD_System_GetVersion, __Z34Caching_CUSTOM_GetVersionFromCacheP12Il2CppString , _IOSSdkInterface_GetVersion_m3424449706 , _AndroidSdkInterface_GetVersion_m1292091148 , _AndroidSdkInterface_GetVersion_m1292091148_MetadataUsageId , __Z48Register_UnityEngine_Caching_GetVersionFromCachev , __Z28AndroidJNI_CUSTOM_GetVersionv , __Z42Register_UnityEngine_AndroidJNI_GetVersionv )
"_GetLngAndLat", referenced from:
_IOSSdkInterface_GetLngAndLat_m3715912886 in Bulk_Assembly-CSharp_4.o
(maybe you meant: _AndroidSdkInterface_GetLngAndLat_m3292465826_MetadataUsageId, _IOSSdkInterface_GetLngAndLat_m3715912886 , _AndroidSdkInterface_GetLngAndLat_m3292465826 )
"_weChatLogin", referenced from:
_IOSSdkInterface_weChatLogin_m2472699116 in Bulk_Assembly-CSharp_4.o
(maybe you meant: _IOSSdkInterface_weChatLogin_m2472699116)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

2个回答

Alipay的iOS版本类库有没有在工程中embedded binary

bobodan123
bobodan123 是需要引入相关的类库吗?
2 年多之前 回复

不能在ios中打包dll,因为dll是x86/x64机器码,并且运行在windows平台,而你的手机的arm/arm64架构的cpu根本不能运行这些代码。

weixin_39621063
丶小小程序员丶 回复bobodan123: 请问问题解决了吗,我也碰见这个问题了,求帮助
接近 2 年之前 回复
caozhy
贵阳老马马善福专业维修游泳池堵漏防水工程 回复bobodan123: 根本不可以这么用。你得找到dll功能的替代品。不一样的cpu架构,不能运行。
2 年多之前 回复
bobodan123
bobodan123 [DllImport("__Internal")] public static extern void weChatLogin(); 我在代码里面使用了DllImport,请问这个问题该怎么办呢
2 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐