iOS xcodebuild archive 编译打包失败:Code Signing Error: Invalid trust settings. Restore system default trust settings for certificate "xx"
摘要:iOS执行xcodebuild archive 命令时报下面的错误:Code Signing Error: Invalid trust settings. Restore system default trust settings for certificate "xx" in order to s
阅读全文
iOS xcodebuild archive编译报错unable to build chain to self-signed root for signer "xxxx"
摘要:编译报错: unable to build chain to self-signed root for signer 原因: 根证书有问题,Apple Worldwide Developer Relations Certification Authority证书要求在系统下只有一个 解决方法: 1、
阅读全文
在M1芯片上执行xcodebuild archive命令,提示Provisioning profile不包含本机设备
摘要:在M1芯片上执行xcodebuild archive命令,提示下面的错误: Code Signing Error: Provisioning profile "xxxx" doesn't include the currently selected device "appqa的Mac mini" (
阅读全文
多个xcode版本并存,切换xcode版本
摘要:一、切换默认xcode版本 sudo xcode-select --switch /Applications/Xcode11.app/Contents/Developer 二、查看当前xcode版本 xcodebuild -v 三、查看当前xcode应用所在目录 xcode-select -p 四、
阅读全文
pod执行指定缓存目录,多版本pod执行缓存目录被清问题
摘要:背景: 我的mac环境下有多版本pod,存在执行不同版本pod的情况。安装pod依赖时(pod install),偶现下面报错: Pre-downloading: `AFNetworking` from `git@gitlab.zhuanspirit.com:zz-ios/AFNetworking.
阅读全文
xcrun上传ios包到苹果审核,报错Cannot proceed with delivery: an existing transporter instance is currently uploading this package
摘要:背景: xcrun altool --upload-app -f xx -u xx-p xx -t ios --output-format xml到itunesconnect.apple.com,报错:Cannot proceed with delivery: an existing transpo
阅读全文
PlistBuddy操作plist文件
摘要:背景:xcode打包时,需要更改一些plist文件,以满足不同的包要求 1、应用的Info.plist,更改包的版本号 2、导出包exportArchive的时候需要指定exportOptionsPlist的plist文件 当然我们可以通过python或shell等脚本去处理,但是比较麻烦,mac提
阅读全文
解决xcode10打包报错:That command depends on command in Target ‘xxx’:scrpit phase"[CP] Copy Pods Resources"
摘要:问题:使用xcode10打包报错,提示 error:Multiple commands produce ‘xxxx/xxx.app’ 1)Target ‘xx’ has create directory command with output ‘xxxxxxx' 2)That command dep
阅读全文
iOS8不能通过itms-services协议下载安装app
摘要:问题:iOS包通过itms-services协议下载app无反应 使用 itms-services://?action=download-manifest&url=【ipa下载链接】 下载app,部分iOS8手机点击提示安装app了,但是点击安装app无反应 解决方法: 下载的plist文件的bun
阅读全文
通过xcode或xcodebuild进行打包
摘要:在实际应用中需要用到debug的安装包,所以决定自己学习一下打包,打包过程中遇到了各种问题,下面记录了一下我在打包中用到的步骤,当然我还有很多不明白的地方,如果有不对的地方,希望可以大家可以指出 环境要求 1.安装xcode 直接在AppStore里下载即可,是免费的 2.安装CocoaPods(包
阅读全文
mac安装protobuf2.4.1时报错./include/gtest/internal/gtest-port.h:428:10: fatal error: 'tr1/tuple' file not found和google/protobuf/message.cc:175:16: error: implicit instantiation of undefined template
摘要:通过网上下载的protobuf2.4.1的压缩文件,然后进行安装,./configure和make时遇到了两个问题。 正常的安装步骤如下: ./configure make ./configure make make check make install protoc —version 问题一 pr
阅读全文
安装和使用iOS的包管理工具CocoaPods
摘要:CocoaPods是ruby实现的,需要用ruby进行安装,mac自带ruby,如果没有ruby的需要先安装ruby。 安装CocoaPods命令 安装CocoaPods命令:sudo gem install cocoapods gem默认是从https://rubygems.org/的源进行下载的
阅读全文
ios开发者账号、证书相关内容
摘要:背景:因为在实际测试中会涉及到不同的证书,而自己又对证书不了解,所以去查资料了解了一下不同证书的区别,如果有不对的地方,欢迎指正补充。 In House:所有手机都可以安装,但是不能上传到app store distribution的App Store:能够上传到app store进行发布,只有发布
阅读全文