iOS

最近更新时间:2024-05-23 14:54:51

我的收藏

Xcode 15 编译报错?

1. 出现Sandbox: rsync,编译报错截图:



可以在“Build Settings”中把"User Script Sandboxing"设置为NO



2. 如果出现 SDK does not contain,编译报错截图:



请在 Podfile 添加如下代码:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
3. 如果在 M 系列电脑上运行模拟器,可能会出现 Linker command failed with exit code 1 (use -v to see invocation),编译报错截图:



可以在 Podfile 添加如下代码
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = "arm64"
end
end
end

TUILiveKit 和自己集成的音视频库冲突了?

腾讯云的 音视频库 不能同时集成,可能存在符号冲突,可以按照下面的场景处理。
1. 如果您使用了 TXLiteAVSDK_TRTC 库,不会发生符号冲突。可直接在 Podfile 文件中添加依赖,
pod 'TUILiveKit'
2. 如果您使用了 TXLiteAVSDK_Professional 库,会产生符号冲突。您可在 Podfile 文件中添加依赖,
pod 'TUILiveKit/Professional'
3. 如果您使用了 TXLiteAVSDK_Enterprise 库,会产生符号冲突。建议升级到 TXLiteAVSDK_Professional 后使用 TUILiveKit/Professional

如何查看 TRTC 日志?

TRTC 的日志默认压缩加密,后缀为 .xlog。日志是否加密是可以通过 setLogCompressEnabled 来控制,生成的文件名里面含 C(compressed) 的就是加密压缩的,含 R(raw) 的就是明文的。
iOS:sandbox的Documents/log
说明:
查看 .xlog 文件需要下载 解密工具,在 Python 2.7环境中放到 xlog 文件同目录下直接使用 python decode_mars_log_file.py 运行即可。
查看 .clog 文件(9.6 版本以后新的日志格式)需要下载 解密工具,在 Python 2.7 环境中放到 clog 文件同目录下直接使用 python decompress_clog.py 运行即可。
更多日志相关设置参考: 日志输出配置