bobodan123
bobodan123
采纳率100%
2018-04-20 10:12

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

10
已采纳

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条回答

  • oyljerry oyljerry 3年前

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

    点赞 评论 复制链接分享
  • caozhy 回答这么多问题就耍赖把我的积分一笔勾销了 3年前

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

    点赞 2 评论 复制链接分享