1、使用runtime: objc_msgSend


2、解决pods-frameworks.sh:permission denied问题
找到Build Phases, 点开Embed Pods Frameworks 是不是看到了
"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh" 这句话? 删除后commond+R,OK。。。。
3、编译运行提示:手机锁了(手机已经解锁。)
解决办法:重启xcode。
4、真机调试:To use iPhone for development, enable Developer mode in Settings->Privacy & Security
解决办法:打开手机“隐私与安全性”---->开发者模式。
5、真机调试:


6、Include of non-modular header inside framework module XXX

原因:
Xcode在默认情况下是不允许在framework中的头文件引入一个不属于任何Module的头文件。
解决方案:
把 target 下的 Build Settings 中的 Allow Non-modular includes in Framework Modules 设置成YES。
7、Xcode15 运行项目报错:Linker command failed with exit code 1 (use -v to see invocation)
解决方案:Xcode15 适配:Other Linker Flags:-ld_classic

8、Command PhaseScriptExecution failed with a nonzero exit code
/Users/qiuxisheng/inspur/wangtv/Pods/Target Support Files/Pods-WangTVIOS/Pods-WangTVIOS-resources.sh: Permission denied


解决方案:找到Pods-WangTVIOS-resources.sh、Pods-WangTVIOS-frameworks.sh添加权限。
打开终端输入以下命令:
chmod +x /Users/qiuxisheng/inspur/wangtv/Pods/Target\ Support\ Files/Pods-WangTVIOS/Pods-WangTVIOS-resources.sh
chmod +x /Users/qiuxisheng/inspur/wangtv/Pods/Target\ Support\ Files/Pods-WangTVIOS/Pods-WangTVIOS-frameworks.sh
9、在模拟器上跑的时候报错卡在 unsupported Swift architecture

或者报错

解决办法:使用Rosetta类型模拟器即可跑起来
在Xcode顶部菜单栏-》Product —〉Destination —〉Show ALL
然后,在模拟器中选择一个带 Rosetta 后缀的模拟器运行。
如果遇到报错 Phone 16 Pro supports emulating this architecture, but the emuluation support software is not installed
解决办法:打开终端 输入以下命令 softwareupdate --install-rosetta 安装rosetta。
10、编译提示 SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target
解决办法:去 https://github.com/survivorsfyh/DevelopmentSupport/tree/main/Libarclite_Files下载对应的libarclite_iphonesimulator.a和libarclite_iphoneos.a ,进入到目录/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib创建arc目录,把下载的libarclite_iphonesimulator.a扔进去。