Xcode 15和iOS 17 适配和问题

1 .Showing Recent Messages PhaseScriptExecution CP\ Embed\ Pods\ Frameworks /Users/mac/Library/Devel

把项目下Pods-App-Fremeworks.sh文件的

if -L "${source}" ; then

echo "Symlinked..."

source="(readlink "{source}")"

fi

改为

if -L "${source}" ; then

echo "Symlinked..."

source="(readlink -f "{source}")"

fi

2 .Unknown process name CGBitmapContextCreateImage: invalid context 0x281fa4cc0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.崩溃

崩溃方法在:

UIImage *YBIBSnapshotView(UIView *view) {

UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, UIScreen mainScreen.scale);

view drawViewHierarchyInRect:view.bounds afterScreenUpdates:NO;

UIImage *image = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext(); // crash it

return image;

}

可改成:

UIGraphicsImageRendererFormat *format = \[UIGraphicsImageRendererFormat alloc init];

format.opaque = YES;

format.scale = UIScreen mainScreen.scale;

UIGraphicsImageRenderer *renderer = \[UIGraphicsImageRenderer alloc initWithSize:view.bounds.size format:format];

UIImage *image = [renderer imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull rendererContext) {

view drawViewHierarchyInRect:view.bounds afterScreenUpdates:NO;

}];

3.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

进入/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/文件夹,如果无arc文件夹就创建一个把 libarclite_iphonesimulator.a放回到arc文件夹 没这个文件的可以github搜索拿下来

相关推荐
鹤卿1231 天前
(OC)UI学习——网易云仿写
ui·ios·objective-c
不自律的笨鸟1 天前
最新屏蔽 iOS 系统更新描述文件保姆级教程
ios
开心猴爷1 天前
Flutter 如何自动上传 可以 IPA 把构建和上传分开处理
后端·ios
秋雨梧桐叶落莳2 天前
iOS——QQ音乐仿写项目总结
学习·macos·ui·ios·mvc·objective-c·xcode
iUNPo2 天前
WWDC26 技术解读:Apple Intelligence、Siri AI 与苹果生态的下一步
macos·ios·wwdc
林森lsjs2 天前
【日耕一题】5. 青春常数(17届蓝桥杯C++B组第一题)
算法·蓝桥杯
代码的小搬运工2 天前
【iOS】谓词与正则表达式
ios
Y_Bk2 天前
第十七届蓝桥杯C/C++A组省赛
c语言·数据结构·c++·算法·蓝桥杯
恋猫de小郭2 天前
解析华为 DevEco Code 和小米 MiMo Code,都基于 OpenCode ,有什么区别?
android·前端·ios
wjm0410062 天前
ios内存管理
ios·objective-c·swift·客户端开发