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

相关推荐
玲珑Felone2 小时前
flutter 状态管理--InheritedWidget、Provider原理解析
android·flutter·ios
AskHarries4 小时前
中国身份证注册美区 Apple Developer 个人账号完整教程
ios·apple
2501_916008896 小时前
Objective-C 测试(OC 测试)指南 从单元测试到性能调优的多工具协同方法
android·ios·小程序·https·uni-app·iphone·webview
PJHubs13 小时前
把一年前写给自己用的翻译软件开源了 | TranslateP
ios·产品
Antonio91515 小时前
【Swift】UIKit:UIAlertController、UIImageView、UIDatePicker、UIPickerView和UISwitch
ios·cocoa·swift
2501_9417987316 小时前
C++高性能音频处理与实时特征提取实战分享:多线程信号处理与低延迟优化经验
ide·macos·xcode
fruge18 小时前
移动端 H5 兼容问题合集:iOS 与 Android 的差异化处理
android·ios
2501_9159090618 小时前
iOS 上架需要什么东西?一次从准备清单到实操流程的完整技术拆解
android·macos·ios·小程序·uni-app·cocoa·iphone
胖虎118 小时前
iOS 如何自定义第一个显示的视图(含 SceneDelegate 删除指南)
ios·ios第一个页面·ios设置首页·scenedelegate