Xcode 配置
修改以下配置文件,版本不同路径有区别。使用 Xcode 修改,注意权限问题。
vi /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.2.sdk/SDKSettings.plist
DefaultProperties.ENTITLEMENTS_REQUIRED = NO
DefaultProperties.CODE_SIGNING_REQUIRED = NO
# 修改所有 XCiPhoneOSCodeSignContext => XCCodeSignContext
vi /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Info.plist
DefaultProperties.CODE_SIGN_CONTEXT_CLASS = XCCodeSignContext
XCode 工程编译设置
选中主 Target 点击 Build Settings,点左上“+”号:Add User-Defined Setting
CODE_SIGNING_ALLOWED = NO
可在自动编译 C# 源码添加:
proj.AddBuildProperty("Unity-iPhone", "CODE_SIGNING_ALLOWED", "NO");