unity Xcode 项目注意事项

1.xcode报错
Cannot use '@try' with Objective-C exceptions disabled
解决
修改target -> build settings -> All | Combined -> Apple LLVM Compiler 4.2 - Language 中 Enable Objective-C Exceptions为YES

image.png

2.发布上传程序报错
333BD06E-99C8-45CF-AD8B-B62AC7EAA25B.png

解决 swift
image.png

3.打包时报错
could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1316.0.21.2.3_0' Reader: '1300.0.29.30_0')', using libLTO version 'LLVM version 13.0.0, (clang-1300.0.29.30)' for architecture arm64
解决 Enable Bitcode 改成NO


image.png

4.app name的国际化
新建InfoPlist.strings文件


image.png

选好要添加的语言


image.png

中文就添加成这样
"CFBundleDisplayName" = "数独Zero";

你可能感兴趣的:(unity Xcode 项目注意事项)