Unity打包Android总结
- The application could not be installed:
NSTALL_PARSE_FAILED_MANIFEST_MALFORMED
解决方法1:AndroidManifest.xml中添加“android:exported="true"”
解决方法2: 点击“Player Settings””Other Settings”,将“Target API Lever”设置为“API Lerver 30”
- The application could not be installed: INSTALL_FAILED_TEST_ONLY
解决方法:
gradle.properties全局配置中设置:
android.injected.testOnly=false
Unity打包IOS总结
1、Undefined symbol: _res_9_getservers
将libresolv.dylib 添加到工程引用中(通过build phases中)。
2、xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
打开xcode,依次点击Xcode -> Preferences Location,设置 Command Line Tools: 这里选择已安装的Xcode
Unity-MAC脚步编译错误:
1、'' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder.
解决方法:依次点击“File””Build Settings…”,选择“Scenes In Build”下面的文件,点击“Add Open Scenes“按钮。