上个月xcode10 正式版一发布,在项目中遇到的一些问题,让大家少走一些弯路
- -lstdc++6.0.9不再被支持, 必须从build phases的 link binary with libraries移除.再添加
-
- 打包过程遇到的一些问题
- 2.1 编译报错conflicting provisioning settings
解决办法:按照下面图片把一些数值清空
-
2.2 如果是不是自动打包遇到过选择证书出现问题
其实就是你的描述文件选项里面有不能有 "iPhone Developer"
解决办法如下
正确图片
- 2.3 选择自动打包的一些配置
error: XXXX has conflicting provisioning settings. XXXX is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been
manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor. (in target 'XXXX')
意思是:自动打包选项里面的选项必须都是"iPhone Developer"
正解如下
- 2.4 Xcodebuild自动打包 在Xcode10之后, 打包所需的ExportOptions.plist更新 需要添加字段
否则会打包过程中,导出不成功
Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profiles for 'com.dsyc.eatBrandManager' were found" UserInfo={NSLocalizedDescription=No profiles for 'com.dsyc.eatBrandManager' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS In House provisioning profiles matching 'com.dsyc.eatBrandManager'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}