xcode遇到的问题以及解决方案
WintonTalks
曾梦想仗剑走天涯,用心做好每一件事情,用代码改变生活
展开
-
Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from:问题解决方法
xcode中常见的问题,已经解决方案原创 2016-01-05 10:52:34 · 330 阅读 · 0 评论 -
Xcode升到6.4插件失效,与添加插件不小心点击Skip Bundle解决办法
今天升级了xcode到6.4 发现之前装的插件不能使用了。这里有一个解决的方案:步骤如下:一、查看Xcode的UUID在终端执行 defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID复制UUID后面那一串字符串然转载 2016-01-15 09:10:58 · 320 阅读 · 0 评论 -
iOS9遇到的问题
1.ios9 下解决http访问 最终找到以下解决办法:在Info.plist中添加NSAppTransportSecurity类型Dictionary。在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES2.打包过程中 app IDS 必须跟 xcode工程 b原创 2016-01-15 09:09:33 · 341 阅读 · 0 评论 -
app上传APP Store报错:ERROR ITMS-90086:"missing 64-bit support.
bug描述:ERROR ITMS-90086:"missing 64-bit support. beginning on february 1, 2015, new iOS apps submitted to the app store must be include 64-bit support and be built with the ios8 SDK......转载 2016-01-09 08:57:14 · 419 阅读 · 0 评论 -
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex f
错误提示 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1clang: error: invalid deployment target for -stdlib=libc++ (req原创 2016-01-08 14:01:37 · 381 阅读 · 0 评论 -
XCode的一些调试技巧
XCode 内置GDB,我们可以在命令行中使用 GDB命令来调试我们的程序。下面将介绍一些常用的命令以及调试技巧。po 命令:为print object 的缩写,显示对象的文本描述(显示从对象的description 消息获得的字符串信息)。比如: 上图中,我使用 po 命令显示一个NSDictionary 的内容。注意在左侧我们可以看到 dict 的一些信息:转载 2016-01-05 14:51:38 · 214 阅读 · 0 评论 -
clang: error: linker command failed with exit code 1 (use -v to see invocation)
一、把 Valid Architectures 的值改为 armv7过程:PROJECT --> Build Settings --> Architectures --> Valid Architectures 他的值本来是 armv7 armv7s ,把armv7s 去掉即可同样的操作TARGETS --> Build Settings --原创 2016-01-05 14:35:45 · 359 阅读 · 0 评论 -
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex f
错误的原因:Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1 ProcessPCH++ "/Users/xxxx/Library/Developer/Xcode原创 2016-01-05 14:34:42 · 652 阅读 · 0 评论 -
更改版本号 真机不能运行
把真机 原程序删除,新打包就OK!原创 2016-01-05 14:29:21 · 318 阅读 · 0 评论 -
Xcode编绎出错问题解决归类
Choose a destination with a supported architecture in order to run on this device. 解决:Target -> Build Settings -> Build Options set the "Compiler for C/C++/Objective-C" - 选择"Default转载 2016-01-05 10:55:39 · 729 阅读 · 0 评论 -
iOS捕获异常,常用的异常处理方法
前言:在开发APP时,我们通常都会需要捕获异常,防止应用程序突然的崩溃,防止给予用户不友好的体验。其实Objective-C的异常处理方法和JAVA的雷同,懂JAVA的朋友一看就懂。我为什么要写这篇博文呢?因为我发现百度上的介绍方法,很多都不是我想要的,而我想要的又说得不清楚,重点是大家都是直接复制别人的代码。。。于是不多说,大家往下看~~~以下程序已测试并通过:设备:iOS 8模转载 2016-01-15 09:29:08 · 464 阅读 · 0 评论