五、XCocde 7 發生一系列警告:node
暫且在修改debug 模式的Debug Information Format 爲DWARF
六、ios
編譯的時候,出錯:Undefined symbols for architecture x86_64: "_llvm_gcda_emit_arcs", referenced from:c++
Undefined symbols for architecture x86_64: "_llvm_gcda_emit_arcs", referenced from: ___llvm_gcov_writeout in libPKRevealController.a(PKRevealController.o) ___llvm_gcov_writeout in libPKRevealController.a(PKAnimation.o) ___llvm_gcov_writeout in libPKRevealController.a(PKLayerAnimator.o) ___llvm_gcov_writeout in libPKRevealController.a(PKRevealControllerView.o) ___llvm_gcov_writeout in libPKRevealController.a(PKSequentialAnimation.o) ___llvm_gcov_writeout in libPKRevealController.a(UIViewController+PKRevealController.o) ___llvm_gcov_writeout in libPKRevealController.a(NSObject+PKBlocks.o) ... "_llvm_gcda_emit_function", referenced from: ___llvm_gcov_writeout in libPKRevealController.a(PKRevealController.o) ___llvm_gcov_writeout in libPKRevealController.a(PKAnimation.o) ___llvm_gcov_writeout in libPKRevealController.a(PKLayerAnimator.o) ___llvm_gcov_writeout in libPKRevealController.a(PKRevealControllerView.o) ___llvm_gcov_writeout in libPKRevealController.a(PKSequentialAnimation.o) ___llvm_gcov_writeout in libPKRevealController.a(UIViewController+PKRevealController.o) ___llvm_gcov_writeout in libPKRevealController.a(NSObject+PKBlocks.o) ...
解決方法:"Instrument Program Flow" 改成Yesapp
http://blog.csdn.net/guojin08/article/details/48553077框架
http://stackoverflow.com/questions/7949781/undefined-symbols-for-architecture-i386-upgrading-project-to-ios-5
函數
七、ui
iOS項目中引入c++庫,編譯連接時報以下錯:spa
"std::string::_Rep::_M_destroy(std::allocator<char> const&)", referenced from:.net
"std::_List_node_base::hook(std::_List_node_base*)", referenced from:debug
"std::string::push_back(char)", referenced from:
"std::string::append(char const*, unsigned long)", referenced from:
"std::string::_Rep::_S_empty_rep_storage", referenced from:
很明顯,以上都是stdc++標準庫函數。
檢查Build Phases->Link Binary With Libraries 也包含了libstdc++.dylib庫,libstdc++.6.0.9.dylib