Jenkins自动打包遇到的问题

1. User interaction is not allowed.Command /usr/bin/codesign failed with exit code 1

1.因为有重复的证书,在钥匙串中把多余的证书或者mobileprovision描述文件都删除掉



2.证书没有访问权限



2. error: Specified application doesn't exist or isn't a bundle directory : './JDZTC.build/Release-iphoneos/JDZTC.app'

Build step 'Execute shell' marked build as failure
*因为导出的app文件路径不正确

3. Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “58b5f909-98fa-4e04-99d3-743200a6141d”, however, no such provisioning profile was found.

1.找不到mobileprovision描述文件,确定安装mobileprovision描述文件
2.找到你用户下的Provisioning Profiles 文件。目录为 /Users/xxx/Library/MobileDevice/Provisioning Profiles xxx表示你自己的用户名
把这里面所有的证书复制到/Users/Shared/Jenkins/Library/MobileDevice/Provisioning Profile 这个文件

4. 3BF12BD34F76025E4306116E6C1F4D2899288C9E: no identity found Command /usr/bin/codesign failed with exit code 1

  1. 证书找不到,看看钥匙串-系统-是不是没有3BF12BD34F76025E4306116E6C1F4D2899288C9E证书,没有的话就复制进去

推荐阅读更多精彩内容