Xcode14&iOS16适配文档
一.Pod工程中的Bundle target署名报错
· 方法一:手动选择Pod工程中的Bundle target 署名中的Team,与主工程划一
· 方法二: 在 Podfile文件中设置你的开辟者的Team ID
post_installdo|installer|
installer.generated_projects.eachdo|project|
project.targets.eachdo|target|
target.build_configurations.eachdo|config|
config.build_settings["DEVELOPMENT_TEAM"] ="Your Team ID"
end
end
end
end
· 方法三: 在 Podfile 文件 中设置 CODE_SIGN_IDENTITY 为空来克制报错,这是现在在用的,也是最简单的方法(保举此方法)
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CODE_SIGN_IDENTITY'] = ''
end
end
end
end 二.使用Xcode14打出来的包,在iOS12.2以下的体系发生瓦解
方法一:
在Build Phases -> Link Binary With Librarires 内里添加 libswiftCoreGraphics.tbd。否则xcode14打出来的包,在iOS12.2以下的体系找不到libswiftCoreGraphics.dylib而发生瓦解。
方法二:官方保举的方法
Build Setting -> other linkflags 添加 -Wl,-weak-lswiftCoreGraphics
方法三:Xcode14.1官方已经修复,下载Xcode14.1就可以
三.APP启动慢
办理完组件间的署名标题,顺遂运行项目,然而在毗连Xcode的时间,运行APP特殊慢,加载半天都进不去APP首页。
办理办法:
使用以下下令打开 DeviceSupport 所在文件夹,删掉全部版本的 DeviceSupport
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
如果用真机调试的时间发现报错了
Could not locate device support files.This xxx isrunning iOS xxx,which may not be supported by thisversion of Xcode.
重新添加相应版本的 DeviceSupport 即可,可以在下面的堆栈中找到相应的 DeviceSupport
版本: https://gitee.com/Han0/iOSDeviceSupport#https://gitee.com/link?target=https%3A%2F%2Fcode.aliyun.com%2Fhanjinjun%2FiOSDeviceSupoort%2Fraw%2Fmaster%2FDeviceSupport%2F15.7.zip
四.非常断点
征象:运行起来之后,每次都会在 AppDelegate 停止点,报以下非常:
Thread 1: "[<_UINavigationBarContentViewLayout 0x13b107470> valueForUndefinedKey:]: this class is not key value coding-compliant for the key inlineTitleView."
方法一:这种情况是开了全局非常断点,去掉即可。
12.碰到的标题 12.1、Pod工程中的Bundle target署名报错(在develop分支上,福才已经添加teamId的情势办理,我在master分支上测试)
12.2 编译错误:
'WXApi' has different definitions in different modules; first difference is defined here found method
办理方案:
先是unpair device->退出Xcode->去到目次~/Library/Developer/Xcode/iOS DeviceSupport ,删除该目次下的全部文件