陶锐
陶锐
  • 发布:2016-08-31 09:08
  • 更新:2017-01-21 13:57
  • 阅读:5395

ios打包-无法导入p12证书

分类:HBuilder

IOS云打包,快结束时报错:
BuildConfigure Failed 31007 无法导入p12证书plus->distribute->apple->p12

以下是完整的日志记录:

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/icon-ipad-settings-retina.png 安装包制作目录58.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/splash-iphone-default.png 安装包制作目录Default.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/splash-iphone-retina35.png 安装包制作目录Default@2x.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/splash-iphone-retina40.png 安装包制作目录Default-568h@2x.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/splash-iphone-retina47.png 安装包制作目录Default-667h@2x.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/splash-iphone-retina55.png 安装包制作目录Default-736h@3x.png

/usr/libexec/PlistBuddy -c "Delete :CFBundleIcons:CFBundlePrimaryIcon:UIPrerenderedIcon" 安装包制作目录Pandora/Pandora-Info.plist

Delete: Entry, ":CFBundleIcons:CFBundlePrimaryIcon:UIPrerenderedIcon", Does Not Exist

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/icon-ipad-normal.png 安装包制作目录72.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/icon-ipad-retina.png 安装包制作目录144.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/icon-ipad-normal7.png 安装包制作目录76.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/icon-ipad-retina7.png 安装包制作目录152.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/icon-ipad-spotlight-normal.png 安装包制作目录50.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/icon-ipad-spotlight-retina.png 安装包制作目录100.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/icon-ipad-spotlight-normal7.png 安装包制作目录40.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/icon-ipad-spotlight-retina7.png 安装包制作目录80.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/icon-ipad-settings-normal.png 安装包制作目录29.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/icon-ipad-settings-retina.png 安装包制作目录58.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/splash-ipad-portrait.png 安装包制作目录Default-Portrait~ipad.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/splash-ipad-portrait_retina.png 安装包制作目录Default-Portrait@2x~ipad.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/splash-ipad-landscape.png 安装包制作目录Default-Landscape~ipad.png

cp -R /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/splash-ipad-landscape_retina.png 安装包制作目录Default-Landscape@2x~ipad.png

/usr/libexec/PlistBuddy -c "Delete :CFBundleIcons:CFBundlePrimaryIcon:UIPrerenderedIcon" 安装包制作目录Pandora/Pandora-Info.plist

Delete: Entry, ":CFBundleIcons:CFBundlePrimaryIcon:UIPrerenderedIcon", Does Not Exist

openssl smime -in "/srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/apple-mobileprovision.mobileprovision" -inform der -verify
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppIDName</key>
<string>H5EFE9E25</string>
<key>ApplicationIdentifierPrefix</key>
<array>
<string>25BW67D253</string>
</array>
<key>CreationDate</key>
<date>2016-08-30T10:28:06Z</date>
<key>Platform</key>
<array>
<string>iOS</string>
</array>
<key>DeveloperCertificates</key>
<array>
<data>MIIFxTCCBK2gAwIBAgIIHEi2FdVPWbQwDQYJKoZIhvcNAQELBQAwgZYxCzAJBgNVBAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3JsZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3aWRlIERldmVsb3BlciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTYwODMwMTAxMTUyWhcNMTcwODMwMTAxMTUyWjCBuDEaMBgGCgmSJomT8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0aWZpY2F0ZSBwb2xpY3kgYW5kIGNlcnRpZmljYXRpb24gcHJhY3RpY2Ugc3RhdGVtZW50cy4wNgYIKwYBBQUHAgEWKmh0dHA6Ly93d3cuYXBwbGUuY29tL2NlcnRpZmljYXRlYXV0aG9yaXR5LzAOBgNVHQ8BAf8EBAMCB4AwFgYDVR0lAQH/BAwwCgYIKwYBBQUHAwMwEwYKKoZIhvdjZAYBAgEB/wQCBQAwDQYJKoZIhvcNAQELBQADggEBAE2ssgy6A7Upu9zvqF8c2H/Zd8zYQp0dqv0sDm71EGaQdX2OziGO6FB9gds9gBnA+fR8GaEp2CiNkGQKdvFWoCR31x2vC8Bdgmj4oqc/GR2vuCxAGu22n9Ss5aR18ASgA42vqQn1uU8IpH3gxE70od2tP9ut4hSIoMBBiHT4SHFjciMR4zHmayT67qemCQ05tA9g2MrnJpb27YKJov+v/Nwog79VkQRmjY/+BOE8XLh6z8PgI2TVu2Dk5O60GCQB6Oh8tEEDxbhTpNIcrcgLd6Jypg3GOFcf/by8kh77/ZNLVQacTm+LuvBNePJ30U4HWB95dSK2oH39L0kN/GuK5Kw=</data>
</array>
<key>Entitlements</key>
<dict>
<key>keychain-access-groups</key>
<array>
<string>25BW67D253.*</string>
</array>
<key>get-task-allow</key>
<true/>
<key>application-identifier</key>
<string>25BW67D253.io.dcloud.H5EFE9E25</string>
<key>com.apple.developer.team-identifier</key>
<string>25BW67D253</string>
</dict>
<key>ExpirationDate</key>
<date>2017-08-30T10:28:06Z</date>
<key>Name</key>
<string>profile</string>
<key>ProvisionedDevices</key>
<array>
<string>4ee9413f5cfedf4b3ff5e79035b42cdc8f9490e7</string>
<string>3490d63e02ef8fd61f66553af01c7e7aae421e69</string>
<string>970d24b54212fc905b9bf9fffaf9662acb56b73b</string>
<string>097b3ac0057af56ced322f930324727827b72f74</string>
<string>2a927e493b5cf319b511ae300c63b49fedc3949d</string>
</array>
<key>TeamIdentifier</key>
<array>
<string>25BW67D253</string>
</array>
<key>TeamName</key>
<string>Anhui Shengli Science and Technology Development Co., Ltd.</string>
<key>TimeToLive</key>
<integer>365</integer>
<key>UUID</key>
<string>c992a35c-f1e9-48cb-933e-8c52dab6fd35</string>
<key>Version</key>
<integer>1</integer>
</dict>
</plist>
Verification successful

iPad/iPhone终端选择完成

/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString 1.0.0" 安装包制作目录Pandora/Pandora-Info.plist

替换版本号完成

/usr/libexec/PlistBuddy -c "Set :CFBundleVersion 83" 安装包制作目录Pandora/Pandora-Info.plist

替换CFBundleVersion版本号完成

/usr/libexec/PlistBuddy -c "Set :CFBundleDisplayName QingYang_GW" 安装包制作目录Pandora/Pandora-Info.plist

替换快捷方式完成
开发版设置完成
Command permissions begin - manifest.json->permissions
{"accelerometer":{"dir":"libAccelerometer","project":{"linkflgs":["-llibAccelerometer"]}},"cache":{"dir":"libCache","project":{"linkflgs":["-llibCache"]}},"camera":{"dir":"libCamera","project":{"linkflgs":["-llibCamera"],"framework":["AssetsLibrary.framework"]}},"gallery":{"dir":"libCamera","project":{"linkflgs":["-llibCamera"],"framework":["AssetsLibrary.framework"]}},"contacts":{"dir":"libContacts","project":{"linkflgs":["-llibContacts"],"framework":["AddressBookUI.framework","AddressBook.framework","AVFoundation.framework","CoreVideo.framework","CoreMedia.framework"]}},"geolocation":{"dir":"libGeolocation","project":{"linkflgs":["-llibGeolocation","-lBaiduKeyVerify"],"framework":["libstdc++.6.0.9.dylib","libsqlite3.0.dylib","QuartzCore.framework","CoreGraphics.framework","CoreTelephony.framework","SystemConfiguration.framework","Security.framework","MapKit.framework","OpenGLES.framework","CoreLocation.framework","BaiduMapAPI_Utils.framework","BaiduMapAPI_Base.framework","BaiduMapAPI_Search.framework","BaiduMapAPI_Location.framework"]}},"orientation":{"dir":"libOrientation","project":{"linkflgs":["-llibOrientation"],"framework":["CoreLocation.framework"]}},"audio":{"dir":"libMedia","project":{"linkflgs":["-llibMedia","-lopencore-amrnb"],"framework":["AVFoundation.framework"]}},"console":{"dir":"libLog","project":{"linkflgs":["-llibLog"]}},"messaging":{"dir":"libMessage","project":{"linkflgs":["-llibMessage"],"framework":["MessageUI.framework"]}},"file":{"dir":"libIO","project":{"linkflgs":["-llibIO"]}},"storage":{"dir":"libStorage","project":{"linkflgs":["-llibStorage"]}},"xmlhttprequest":{"dir":"libXHR","project":{"linkflgs":["-llibXHR"]}},"runtime":{"dir":"libWidget","project":{"linkflgs":["-llibWidget"]}},"zip":{"dir":"libZip","project":{"linkflgs":["-llibZip"]}},"proximity":{"dir":"libPGProximity","project":{"linkflgs":["-llibPGProximity"]}},"ui":{"dir":"libUI","project":{"linkflgs":["-llibUI","-llibNavigator","-llibNativeUI"]}},"webview":{"dir":"libUI","project":{"linkflgs":["-llibUI"]}},"navigator":{"dir":"libNavigator","project":{"linkflgs":["-llibNavigator"],"framework":["AVFoundation.framework","AssetsLibrary.framework","AddressBook.framework","CoreLocation.framework"]}},"nativeui":{"dir":"libNativeUI","project":{"linkflgs":["-llibNativeUI"]}},"barcode":{"dir":"libBarcode","project":{"linkflgs":["-llibBarcode"],"framework":["AVFoundation.framework","AddressBookUI.framework","AddressBook.framework","ImageIO.framework","CoreVideo.framework","CoreMedia.framework","libiconv.2.dylib"]}},"payment":{"dir":"libPayment","project":{"linkflgs":["-llibPayment"]}},"speech":{"dir":"libSpeech","project":{"linkflgs":["-llibSpeech"]}},"share":{"dir":"libShare","project":{"linkflgs":["-llibShare"]}},"oauth":{"dir":"libOauth","project":{"linkflgs":["-llibOauth"]}},"maps":{"dir":"libMap","project":{"linkflgs":["-llibMap"]}},"push":{"dir":"libPush","project":{"linkflgs":["-llibPush"]}},"statistic":{"dir":"libStatistic"},"nativeobj":{"dir":"libNativeObj","project":{"linkflgs":["-llibNativeObj"]}},"invocation":{"dir":"libPGInvocation","project":{"linkflgs":["-llibPGInvocation"]}},"stream":{"dir":"libStream","project":{"linkflgs":["-llibStream"]}},"confusion":{"dir":"libCrypt","project":{"linkflgs":["-llibCrypt"]}}}
accelerometer :
linkflgs: -llibAccelerometer
audio :
linkflgs: -llibMedia-lopencore-amrnb
framework: AVFoundation.framework
cache :
linkflgs: -llibCache
camera :
linkflgs: -llibCamera
framework: AssetsLibrary.framework
console :
linkflgs: -llibLog
contacts :
linkflgs: -llibContacts
framework: AddressBookUI.frameworkAddressBook.frameworkAVFoundation.frameworkCoreVideo.frameworkCoreMedia.framework
device :
downloader :
events :
file :
linkflgs: -llibIO
gallery :
linkflgs: -llibCamera
framework: AssetsLibrary.framework
geolocation :
linkflgs: -llibGeolocation-lBaiduKeyVerify
framework: libstdc++.6.0.9.dyliblibsqlite3.0.dylibQuartzCore.frameworkCoreGraphics.frameworkCoreTelephony.frameworkSystemConfiguration.frameworkSecurity.frameworkMapKit.frameworkOpenGLES.frameworkCoreLocation.frameworkBaiduMapAPI_Utils.frameworkBaiduMapAPI_Base.frameworkBaiduMapAPI_Search.frameworkBaiduMapAPI_Location.framework
invocation :
linkflgs: -llibPGInvocation
messaging :
linkflgs: -llibMessage
framework: MessageUI.framework
orientation :
linkflgs: -llibOrientation
framework: CoreLocation.framework
proximity :
linkflgs: -llibPGProximity
storage :
linkflgs: -llibStorage
uploader :
runtime :
linkflgs: -llibWidget
xmlhttprequest :
linkflgs: -llibXHR
zip :
linkflgs: -llibZip
barcode :
linkflgs: -llibBarcode
framework: AVFoundation.frameworkAddressBookUI.frameworkAddressBook.frameworkImageIO.frameworkCoreVideo.frameworkCoreMedia.frameworklibiconv.2.dylib
maps :
linkflgs: -llibMap
speech :
linkflgs: -llibSpeech
webview :
linkflgs: -llibUI
nativeui :
linkflgs: -llibNativeUI
navigator :
linkflgs: -llibNavigator
framework: AVFoundation.frameworkAssetsLibrary.frameworkAddressBook.frameworkCoreLocation.framework
nativeobj :
linkflgs: -llibNativeObj
Command permissions Complete

开始处理行货包

/usr/bin/mobileprovisionParser -f "/srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/apple-mobileprovision.mobileprovision" -o uuid
c992a35c-f1e9-48cb-933e-8c52dab6fd35

获取UUID c992a35c-f1e9-48cb-933e-8c52dab6fd35

/usr/bin/security import /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/apple-private.p12 -k /Users/seaman/Library/Keychains/login.keychain -P !@#$%^&*() -T /usr/bin/codesign

sh: -c: line 0: syntax error near unexpected token -T' sh: -c: line 0:/usr/bin/security import /srv/bdserver.dcloud.net.cn/package/IOS/queue/5dd45323-57a9-32d2-80a4-57c560609c27/H5EFE9E25/.manifest/apple-private.p12 -k /Users/seaman/Library/Keychains/login.keychain -P !@#$%^&*() -T /usr/bin/codesign'

BuildConfigure Failed 31007 无法导入p12证书plus->distribute->apple->p12

2016-08-31 09:08 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

请问解决了吗?我也是这个问题

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