iOS打包常见错误
摘要:升级Xcode8.2后,构建失败: error: /usr/bin/codesign --force --preserve metadata=identifier,entitlements,resource-rules --sign" Warning: usage of --preserve-met
阅读全文
posted @
2017-09-11 15:43
dongzee
阅读(590)
推荐(0)
如何解决unity构建iOS版本,dll中的构建函数丢失的问题
摘要:比如某个dll中有一个类: 如果工程中,没有显式调用 new A(),在使用il2cpp方式构建时,这个A()会被剔除掉。最终的程序包里也就没法找到这个默认构造了。 解决办法: 1、找一个位置定义一个无用的静态实例,如 static A _unusedA = new A();这样就相当于A()被使用
阅读全文
posted @
2017-08-21 20:04
dongzee
阅读(1822)
推荐(0)
xcode忽略警告
摘要:1、对整个文件使用 你的工程 -> 你的target -> Build Phases -> Compile Sources -> 搜索要忽略警告的文件名,在 Compiler Flags 列 双击,键入忽略警告的设置。多个设置项使用空格隔开。 常用的几种警告:1 // 忽略未使用变量的警告2 -Wno-unused-variable3 4 // 忽略已过期的类或类成员的警告5 -Wno-deprecated-declarationsView Code2、对某段代码使用 在要使用的代码处,加入如下代码:1 #pragma clang diagnostic push2 #p
阅读全文
posted @
2014-03-25 14:11
dongzee
阅读(758)
推荐(1)
自定义xcode文件模板
摘要:下面两个路径都可以用于放模板文件1. /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates2. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates具体如何设置,可以参考附件中的文档。Documentation.pdf
阅读全文
posted @
2014-03-14 14:02
dongzee
阅读(220)
推荐(0)
修改xcode代码风格设置
摘要:1、找到文件:/Applications/Xcode.app/Contents/PlugIns/IDECodeSnippetLibrary.ideplugin/Contents/Resources/SystemCodeSnippets.codesnippets2、以后想改回来的话,先把文件备份一下。3、用文本编辑器打开,内容是xml格式的。比如,使用“if”搜索if语句的风格设定。4、改完保存,重启xcode。SystemCodeSnippets.codesnippets.zip
阅读全文
posted @
2014-03-14 13:38
dongzee
阅读(981)
推荐(0)