b***@qq.com
b***@qq.com
  • 发布:2022-06-27 15:41
  • 更新:2022-06-27 17:03
  • 阅读:783

增加unipush后ios端云打包报错

分类:HBuilderX

-------------------------这是部分日志 (最后一段)---------------
Ld [PackagePath]/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/Binary/HBuilder normal arm64 (in target 'HBuilder' from project 'HBuilder')
cd [PackagePath]
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios9.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -L[PackagePath]/build/Release-iphoneos -L[SourcePath]/libs/UniSDK -L[SourcePath]/libs/Universal -F[PackagePath]/build/Release-iphoneos -F[SourcePath]/libs/UniSDK -F[SourcePath]/libs/Universal -F[SourcePath]/libs/UniSDK -F[SourcePath]/libs/Universal -filelist [PackagePath]/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/HBuilder.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker [PackagePath]/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/HBuilder_lto.o -fobjc-arc -fobjc-link-runtime -ObjC -llibLoader -llibPDRCore -lcoreSupport -llibAccelerometer -lopencore-amrnb -lmp3lame -llibMedia -llibCache -llibLog -llibIO -llibPGInvocation -llibNativeObj -llibNativeUI -llibNavigator -llibOrientation -llibPGProximity -llibStorage -llibUI -llibXHR -llibZip -llibBarcode -lDCUniZXing -luchardet -llibCamera -llibGeolocation -llibPush -llibShare -lGeTuiPush -lUniPush -lweixinShare -lWeChatSDK -lQQShare -weak_framework Accelerate -weak_framework AssetsLibrary -weak_framework AddressBook -weak_framework AddressBookUI -weak_framework AudioToolbox -weak_framework AVFoundation -weak_framework CFNetwork -weak_framework CoreFoundation -weak_framework CoreMotion -weak_framework CoreGraphics -weak_framework CoreMedia -weak_framework CoreTelephony -weak_framework CoreText -weak_framework CoreVideo -weak_framework Foundation -weak_framework ImageIO -weak_framework JavaScriptCore -weak_framework MobileCoreServices -weak_framework MediaPlayer -weak_framework Photos -weak_framework QuartzCore -weak_framework QuickLook -weak_framework Security -weak_framework storage -weak_framework SystemConfiguration -weak_framework UIKit -weak_framework UserNotifications -weak_framework WebKit -lc++ -lz -lxml2 -lsqlite3 -weak_framework PhotosUI -weak_framework MetalKit -weak_framework GLKit -weak_framework CoreLocation -weak_framework GTSDK -lresolv -weak_framework TencentOpenAPI -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker [PackagePath]/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/HBuilder_dependency_info.dat -o [PackagePath]/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/Binary/HBuilder
ld: warning: arm64 function not 4-byte aligned: _ffi_call_SYSV from [SourcePath]/libs/UniSDK/liblibPGInvocation.a(sysv_arm64.o)
ld: warning: arm64 function not 4-byte aligned: _ffi_closure_SYSV from [SourcePath]/libs/UniSDK/liblibPGInvocation.a(sysv_arm64.o)
duplicate symbol '_OBJCCLASS$_PGPushActualize' in:
[SourcePath]/libs/UniSDK/libGeTuiPush.a(PGPushActualize.o)
[SourcePath]/libs/UniSDK/libUniPush.a(PGPushActualize.o)
duplicate symbol '_OBJCMETACLASS$_PGPushActualize' in:
[SourcePath]/libs/UniSDK/libGeTuiPush.a(PGPushActualize.o)
[SourcePath]/libs/UniSDK/libUniPush.a(PGPushActualize.o)
duplicate symbol '_OBJCIVAR$_PGPushServerAct.appKey' in:
[SourcePath]/libs/UniSDK/libGeTuiPush.a(PGPushServerAct.o)
[SourcePath]/libs/UniSDK/libUniPush.a(PGPushServerAct.o)
duplicate symbol '_OBJCIVAR$_PGPushServerAct.appSecret' in:
[SourcePath]/libs/UniSDK/libGeTuiPush.a(PGPushServerAct.o)
[SourcePath]/libs/UniSDK/libUniPush.a(PGPushServerAct.o)
duplicate symbol '_OBJCCLASS$_PGPushServerAct' in:
[SourcePath]/libs/UniSDK/libGeTuiPush.a(PGPushServerAct.o)
[SourcePath]/libs/UniSDK/libUniPush.a(PGPushServerAct.o)
duplicate symbol '_OBJCMETACLASS$_PGPushServerAct' in:
[SourcePath]/libs/UniSDK/libGeTuiPush.a(PGPushServerAct.o)
[SourcePath]/libs/UniSDK/libUniPush.a(PGPushServerAct.o)
duplicate symbol '_OBJCIVAR$_PGPushServerAct.clientId' in:
[SourcePath]/libs/UniSDK/libGeTuiPush.a(PGPushServerAct.o)
[SourcePath]/libs/UniSDK/libUniPush.a(PGPushServerAct.o)
duplicate symbol '_OBJCIVAR$_PGPushServerAct.appID' in:
[SourcePath]/libs/UniSDK/libGeTuiPush.a(PGPushServerAct.o)
[SourcePath]/libs/UniSDK/libUniPush.a(PGPushServerAct.o)
ld: 8 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
BUILD FAILED The following build commands failed:
Ld [PackagePath]/build/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/Binary/HBuilder normal arm64 (in target 'HBuilder' from project 'HBuilder')
(1 failure)
-------------------------这是部分日志 (最后一段)---------------
完整日志:
https://ide.dcloud.net.cn/build/errorLog/6e767370-f5e6-11ec-8322-5316f3a7cd57

2022-06-27 15:41 负责人:DCloud_App_Array 分享
已邀请:

最佳回复

DCloud_App_Array

DCloud_App_Array

这是同时使用了个推推送和UniPush模块导致的,建议使用UniPush后不要使用个推推送模块,解决方案如下:
打开项目manifest.json文件,切换到“源码视图”

  • 5+ App项目
    手动删除:"plus" -> "distribute" -> "plugins" -> "push" -> "igexin" 节点。
  • uni-app项目
    手动删除:"app-plus" -> "distribute" -> "sdkConfigs" -> "push" -> "igexin" 节点。
    保存后重新提交云端打包。
BoredApe

BoredApe - 有问题就会有答案。

duplicate symbol '_OBJCCLASS$_PGPushActualize' in:  
[SourcePath]/libs/UniSDK/libGeTuiPush.a(PGPushActualize.o)  
[SourcePath]/libs/UniSDK/libUniPush.a(PGPushActualize.o)

重复添加了推送。你集成的原生插件中包含推送 manifest.json中又勾选了推送嘛?

  • b***@qq.com (作者)

    请问一下,怎么看 ‘集成的原生插件’ ?

    (公司没人,我搞后端的,被拉过来背锅的,第一次玩这些东西。)

    2022-06-27 16:38

  • BoredApe

    回复 b***@qq.com: 你看看 manifest.json文件中【APP原生插件配置】中是否配置了推送相关的原生插件

    2022-06-27 16:39

  • b***@qq.com (作者)

    回复 BoredApe: 没有这个选项,可以看下面的附件

    2022-06-27 16:43

  • b***@qq.com (作者)

    【云端打包提示信息】


    ** 打包证书不是 App Store 生产证书(Production),不能提交到 App Store 上架审核!


    使用开发证书 “iPhone Developer: * (***)” 打包,只能安装到测试设备

    2022-06-27 17:02

  • BoredApe

    回复 b***@qq.com: 跟这个无关

    2022-06-27 17:03

b***@qq.com

b***@qq.com (作者)

没有这个选项,可以看下面的附件

该问题目前已经被锁定, 无法添加新回复