打包测试出现的问题:

1. 打包生成IPA包时遇到错误:missing ios distribution signing identity for XXXXXXXXXX
解决方法:

1.首先, 直接点此链接:https://developer.apple.com/certificationauthority/AppleWWDRCA.cer ,下载文件,并双击安装。

2.然后进入钥匙串 选择菜单栏的显示 - 显示已过期证书

3.然后在钥匙串 -(登录和系统中查看)  可以看到Apple WorldWide Developer Relations CertXXXXXXX (并且显示此证书已过去)删除即可

4.不过不一定(登录和系统)都有此证书。

在这个地址有详细说明: http://blog.csdn.net/yxh265/article/details/50715558
2. no identity found Command /usr/bin/codesign failed with exit code 1 报错解决方法
    CodeSign /Users/Justinjing/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Products/Debug-iphoneos/GodTVPlay.app
        cd /Users/Justinjing/Desktop/project/PAChat
        export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
        export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

    Signing Identity:     "iPhone Developer: Justinjing (6ZM8N7CJE9)"
    Provisioning Profile: "iOS Team Provisioning Profile: com.Justinjing.*"
                          (1bea6a7e-8631-486e-889e-4b062337ae5e)


        /usr/bin/codesign --force --sign CGDBA25FC97FA851693DEEB23A01AD91B2D00526 --resource-rules=/Users/justinjing/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Products/Debug-iphoneos/PAChat.app/ResourceRules.plist --entitlements /Users/leeping/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Intermediates/PAChat.build/Debug-iphoneos/PAChat.build/PAChat.app.xcent /Users/justinjing/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Products/Debug-iphoneos/PAChat.app


    CGDBA25FC97FA851693DEEB23A01AD91B2D00526: no identity found
    Command /usr/bin/codesign failed with exit code 1

看到这个日志好多朋友会头痛,因为大片的log,很迷茫,不用怕,其实也很简单,我们要抓住关键,
CGDBA25FC97FA851693DEEB23A01AD91B2D00526: no identity found
也就是找不到对于的profile文件,这个很纳闷我的keychian里面又com.Justinjing.*"的profile文件为什么还报错呢?
纳闷之下,我就用“iphone配置使用工具”打开了看了看发现了二个同样的com.Justinjing.*,
 仔细一看一个是过期的,罪魁祸首找到了,
我就删除了过期的profile,然后重启xcode,bulid成功。


或者下面方法:
 1. stackoverflow 的解决方法是 xcode->preference->account->view detail -> refresh the provisioning profile
 2. 但是我这边最后一步是 没有刷新按钮 是一个 download all 的按钮 想到provisioning profile 和证书都是别人导给我的 所以没有采用这种方法
 3. 直接  进入 ~/Library/MobileDevice/Provisioning Profiles 文件夹 删除出问题的provisioning profile 然后重新导入就ok 了。

3. libraries for bitcode must be generated from Xcode Archive or Install build forARM7 解决办法
开发环境 :Xcode7.2
开发语言:OC
场景:工程中 引入第三方静态库  真机调试没有问题,但是在打包上传商店的时候报错
报错:
问题详情:
Bitcode bundle could not be generated because '/Users/ws/Desktop/Build/Intermediates/ArchiveIntermediates/G2-JEWELRY/BuildProductsPath/Release-iphoneos/libNDL-LIB-G2-CORE.a(POSSDK.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7
由上述问题看出第三方库不兼容 XCode7later 之后默认开启BitCode

解决办法:
1.更新library使包含Bitcode,否则会出现以上问题。
2.关闭Bitcode,简单粗暴。

解决实现:
1、更新换库
2、解决方法步骤
选择工程之后再Build  settings标签 中的 build optional 查看Enable bitCode  选项改为NO
4.报错: ld: bitcode bundle could not be generated because '/Users/liuyuning/Desktop/TestDecode/Decode/libDecode.a(Decode.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

这里有详细说明:http://www.cnblogs.com/gejings/p/5541410.html
5 报错:failed to get the task for process XXX(解决方案)
引入:    iOS真机调试程序,报如下错误信息:
failed to get the task for process XXX 
**原因:**
证书问题,project和targets的证书都必须是开发证书,ADHOC的证书会出现此问题。

**解决方案:**
    project和targets的证书**使用开发证书**。
** **

**其他:**
[failed to get the task for process XXX](http://blog.sina.com.cn/s/blog_69081e0601015vm8.html)

This error happens when you have set Distribution Provisioning profile in code signing. Change it to Developer Provisioning Profile, then it will work. Worked for me for Xcode SDK 4.5.
把你的code sign由Distribution改成Developer.就这么简单.

补充:
iphone5s的时候会出现:process launch failed: security
这时候,应该app其实已经安装成功了,你只需要在iphone上启动app,然后点击信任就可以了。
6 Your account already has a valid iOS Distribution certificate!问题解决
这个哥们有详细说明: http://www.jianshu.com/p/918f69a729e2
而我的做法
1. 找到证书安装位置删除
证书安装位置在这里: ~/Library/MobileDevice/Provisioning Profiles
2. 重新生成证书.
3. 打包.

你可能感兴趣的:(打包测试出现的问题:)