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搜索拿下来

相关推荐
for_ever_love__2 小时前
UI学习:UISearchController基础了解和应用
学习·ui·ios·objective-c
代码的小搬运工6 小时前
ZARA仿写
ios
人月神话Lee8 小时前
【图像处理】vImage/Accelerate——SIMD 让 CPU 也能飞
ios·swift·图像识别
2601_9557674212 小时前
iPhone 17 护眼钢化膜怎么选?从PWM频闪到圆偏振光,解析「软硬协同」光学方案
ios·ar·iphone·护眼钢化膜·圆偏振光·#观复盾护景贴·磁控溅射
飞天狗11114 小时前
2025第十六届蓝桥杯c/c++B组国赛题解
c语言·c++·算法·蓝桥杯
2601_9557674215 小时前
iPhone 17 护眼保护膜怎么选?圆偏振光 + AR 抗眩方案,解读 96% 透光率与 ≤0.5% 反射率的协同价值
ios·ar·iphone·圆偏振光·#观复盾护景贴·scinique双护技术
三雒15 小时前
KMP 实战:Android 开发如何快速统一双端 IM 模块
android·ios·kotlin
秋雨梧桐叶落莳16 小时前
iOS——抽屉视图详解
开发语言·macos·ui·ios·objective-c·cocoa
会编程的土豆16 小时前
Go 语言匿名函数详解
c++·golang·xcode
会编程的土豆16 小时前
Go 语言闭包(Closure)详解
c++·golang·xcode