在配置iOS的Apple Push后,在线云打包报错。
iOS Distribution已经包含项目证书+推送证书
导出的p12文件,包含iPhone Distribution+Apple Push Services+Apple Development IOS Push Services
签名使用的是:com.ttnews.app.pro
推送使用的是官网推荐的:个推
已单独将 Apple Push Services 导出成p12文件,并上传到个推的推送管理中。
在线云打包报错详情:
xcode build 开始
xcodebuild -sdk \"iphoneos11.1\" -project \"安装包制作目录Pandora.xcodeproj\" TARGETED_DEVICE_FAMILY=\"1\" OTHER_LDFLAGS=\"-llibPDRCore -lcoreSupport -ObjC -llibAccelerometer -llibCache -llibCamera -llibLog -llibContacts -llibIO -llibPGInvocation -llibOrientation -llibPGProximity -llibStorage -llibXHR -llibZip -llibMap -llibUI -llibNativeUI -llibNavigator -llibNativeObj -llibOauth -llibMessage -llibShare -llibPush -llibCrypt -llibMedia -lopencore-amrnb -llibBarcode -llibGeolocation -lBaiduKeyVerify -lssl -lcrypto -lGeTuiPush -lGeTuiSdk -lGtExtensionSdk -lweixinShare -lWeChatSDK -llibStatistic\" GCC_PREPROCESSOR_DEFINITIONS=\"PDR_PLUS_GETUI PDR_PLUS_UMENG\" HEADER_SEARCH_PATHS=\"\${SDK_ROOT}/usr/include/libxml2 \$(SRCROOT)/libPDRCore/libPDRCore/Managers \$(SRCROOT)/libPDRCore/libPDRCore/Feature/zip \$(SRCROOT)/libPDRCore/libPDRCore/Feature \$(SRCROOT)/libPDRCore/libPDRCore/MiniServer \$(SRCROOT)/libPDRCore/libPDRCore/splashAD \$(SRCROOT)/libPDRCore/libPDRCore/tools \$(SRCROOT)/libPush/GeTuiPush/GeTuiPush \$(SRCROOT)/libPush/libPush \$(SRCROOT)/libStatistic/libStatistic\" PROVISIONING_PROFILE=\"11bdc702-262c-44ee-a183-f9759c601320\" CODE_SIGN_IDENTITY=\"Apple Push Services: com.ttzqnews.ttyq.pro\"
Build settings from command line:
CODE_SIGN_IDENTITY = Apple Push Services: com.ttzqnews.ttyq.pro
GCC_PREPROCESSOR_DEFINITIONS = PDR_PLUS_GETUI PDR_PLUS_UMENG
HEADER_SEARCH_PATHS = ${SDK_ROOT}/usr/include/libxml2 $(SRCROOT)/libPDRCore/libPDRCore/Managers $(SRCROOT)/libPDRCore/libPDRCore/Feature/zip $(SRCROOT)/libPDRCore/libPDRCore/Feature $(SRCROOT)/libPDRCore/libPDRCore/MiniServer $(SRCROOT)/libPDRCore/libPDRCore/splashAD $(SRCROOT)/libPDRCore/libPDRCore/tools $(SRCROOT)/libPush/GeTuiPush/GeTuiPush $(SRCROOT)/libPush/libPush $(SRCROOT)/libStatistic/libStatistic
OTHER_LDFLAGS = -llibPDRCore -lcoreSupport -ObjC -llibAccelerometer -llibCache -llibCamera -llibLog -llibContacts -llibIO -llibPGInvocation -llibOrientation -llibPGProximity -llibStorage -llibXHR -llibZip -llibMap -llibUI -llibNativeUI -llibNavigator -llibNativeObj -llibOauth -llibMessage -llibShare -llibPush -llibCrypt -llibMedia -lopencore-amrnb -llibBarcode -llibGeolocation -lBaiduKeyVerify -lssl -lcrypto -lGeTuiPush -lGeTuiSdk -lGtExtensionSdk -lweixinShare -lWeChatSDK -llibStatistic
PROVISIONING_PROFILE = 11bdc702-262c-44ee-a183-f9759c601320
SDKROOT = iphoneos11.1
TARGETED_DEVICE_FAMILY = 1
=== BUILD TARGET Pandora OF PROJECT Pandora WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
Code Signing Error: No certificate matching 'Apple Push Services: com.ttnews.app.pro' found: Select a different signing certificate for CODE_SIGN_IDENTITY, a team that matches your selected certificate, or switch to automatic provisioning.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.1' BUILD FAILED The following build commands failed:
Check dependencies
(1 failure)
BuildConfigure Failed 31015 编译错误BuildConfigure Failed 31015 编译错误
BuildConfigure Failed 31015 编译错误 Apple Push Services 使用了非打包证书 No certificate matching
3 个回复
[已删除]
我也遇到这个问题,怎么解决的?
DCloud_IOS_XTY
请确保上传的证书是打包证书,而不能使用APS证书
简符 - 符阵师
推送证书不是用来打包的