基本解决xcode中如何xcode 查找文件函数或变量的所有的被调用和使用到的地方

&&国之画&&&& &&&&&&
&& &&&&&&&&&&&&&&&&&&&&
鲁ICP备号-4
打开技术之扣,分享程序人生!  不支持选中变量按搜索后自动把选中的内容放入到搜索框中 选中一个变量后,按command &
把移动硬盘插入到macBookPro中想要剪切电影到移动硬盘中 移动硬盘中有三个分区,第二个分区确是 &
尝试了: &
微信的公众号: &
vSphere ESXI &
Xcode的iOS模拟器默认输入法是英文的,没有中文: &
学习自动布局,约束,方面,看了些帖子: &
[已解决]Swift中键盘显示后调整TableView的显示高度后工具栏变黑色了 &
[已解决]Swift中如何在键盘显示或消失的时候调整TableView的界面显示 &
免费的格式化Javascript源码的网站
查询Unicode字符,且还带Oct,Decimal,Hex,HTML Entity
HTML和Javascript都支持,很好用。手机门户>>
热门点击>>
手机腾讯>>
电脑上wap网:怎样创建一个Xcode插件(Part 2) - CocoaChina_让移动开发更简单
怎样创建一个Xcode插件(Part 2) - CocoaChina_让移动开发更简单
haodewap.netI am encountering 'duplicate symbol' errors in Xcode 4.5.1 when I try to build a project after adding my own framework. I verified the framework files for duplicates and there are none. But when I add the framework to a project, it complains with these error. Please suggest..
duplicate symbol _NXArgc in:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.3.1.o
/Users/idcc/Test/MyFW/Products/MyTestFW.framework/MyTestFW
duplicate symbol _NXArgv in:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.3.1.o
/Users/idcc/Test/MyFW/Products/MyTestFW.framework/MyTestFW
duplicate symbol ___progname in:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.3.1.o
/Users/idcc/Test/MyFW/Products/MyTestFW.framework/MyTestFW
duplicate symbol _environ in:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.3.1.o
/Users/idcc/Test/MyFW/Products/MyTestFW.framework/MyTestFW
duplicate symbol start in:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.3.1.o
/Users/idcc/Test/MyFW/Products/MyTestFW.framework/MyTestFW
ld: 8 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks in advance..
解决方案 Those symbols are in crt.o, the startup code of standard C library. Normally it should be the entry point of executable file to initialize global variables and objects. It will also call your main function.
But for a framework, you should not include it in your binary because framework should not have main.
I believe you have "Link with Standard Library" option as "YES" in your framework's target build setting. This will link crt.o into your framework. And when you link the framework into a project, there will be duplicated symbols.
Please set the option "Link with Standard Library" to NO in your build setting.
本文地址: &
当我在添加我自己的框架后尝试构建项目时,我遇到了Xcode 4.5.1中的“重复符号”错误。我验证了框架文件的副本,没有。但是当我添加框架到一个项目,它抱怨这些错误。请建议..
重复符号_NXArgc in: /Applications/Xcode.app/Contents/Developer/Platforms/ iPhoneOS.platform / Developer / SDKs / iPhoneOS6.0.sdk / usr / lib / crt1.3.1.o
/Users/idcc/Test/MyFW/Products/MyTestFW.framework/MyTestFW
重复符号_NXArgv在: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.3.1.o
/Users/idcc/Test/MyFW/Products/MyTestFW.framework/MyTestFW
重复符号___progname: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/ Developer / SDKs / iPhoneOS6.0.sdk / usr / lib / crt1.3.1.o
/Users/idcc/Test/MyFW/Products/MyTestFW.framework/MyTestFW
重复符号_environ in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.3.1.o
/ Users / idcc /Test/MyFW/Products/MyTestFW.framework/MyTestFW
重复符号从: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ iPhoneOS6.0.sdk / usr / lib / crt1.3.1.o
/Users/idcc/Test/MyFW/Products/MyTestFW.framework/MyTestFW
ld:8个架构的重复符号armv7
clang:错误:链接器命令失败,退出代码1(使用-v查看调用)
解决方案 这些符号在crt.o,标准C库的启动代码。通常它应该是可执行文件的入口点来初始化全局变量和对象。它也会调用你的main函数。
但是对于一个框架,你不应该将它包含在二进制文件中,因为框架不应该有main。 我相信你的框架的目标构建设置中有“链接标准库”选项为“YES”。这将链接crt.o到你的框架。
请在构建设置中将“与标准库链接”选项设置为“否”。如果将框架链接到项目中, p>
本文地址: &
扫一扫关注官方微信}

我要回帖

更多关于 xcode8调用相机 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信