前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【IOS】IOS开发问题解决方法索引(二)

【IOS】IOS开发问题解决方法索引(二)

作者头像
江中散人_Jun
发布2022-03-08 14:14:17
7400
发布2022-03-08 14:14:17
举报
文章被收录于专栏:云原生布道专栏

IOS开发问题解决方法索引(二)

1 不使用ARC编译,-fno-objc-arc

ios5 选择了ARC但是不使用ARC编译,-fno-objc-arc

http://leobluewing.iteye.com/blog/1384797

http://blog.cnrainbird.com/index.php/2012/03/13/object-c_kai_fa_zhong_hun_he_shi_yong_huo_bu_shi_yong_arc/

2 SIGABRT错误的调试办法

SIGABRT错误的调试办法

http://www.cnblogs.com/kimimaro/archive/2012/03/29/2423486.html

iOS经常会遇到一个头疼的error就是在main函数上显示“ Thread 1: signal SIGABRT”这个错误,终于在stackoverflow上找到了调试的办法:

原文链接: http://stackoverflow.com/questions/9782621/i-have-an-error-in-main-m-thread-1-signal-sigabrt-how-can-i-fix-this

重点就是 Set an exceptionbreakpoint.

之前我们遇到的在main函数上的那个崩溃信息,如果想要调试就加入一个 an exception breakpoint ,它会在exception 被 cathc 的时候停下来,这样就可以追踪到造成 exception 的代码了。

加入一个exception breakpoint的方法就是:在navigator的断点页面,点击左下角的加号就能看到 exceptionbreakpoint;

加入的时候可以设置,默认是 all,也可以选择针对 oc 还是 c 的断点。

如果ViewController中的nib Name没有与xib文件名对应上(或者class没有与ViewController名对应上),也会抛出这个异常。

Compileerrors with #include <string> in Cocoa App

3 Compileerrors with #include <string> in Cocoa App

Compile errors with #include <string> in Cocoa App

http://stackoverflow.com/questions/7542850/compile-errors-with-include-string-in-cocoa-app

Ifit is ".m", try to change it to obj-cpp ".mm", so thatXcode will deduce correct language. Or just put c++-specific headers inside"#ifdef __cplusplus" block

4 如何解决Couldnot launch app - No such file or directory

如何解决Could notlaunch app - No such file or directory

http://blog.csdn.net/wohaoxuexi/article/details/8233562

1.断开设备,删除在设备调试的APP

2.强行退出XCode(Quitxcode),不要只是关闭,直接强行退出

3.删除系统生成的文件(~/Library/Developer/Xcode/DerivedData/),使用终端命令进入到相应目录,然后执行:rm-rf DerivedData/,等一会就可以了

4.重启XCode,连接完设备测试就可以了

5 iphone 接收摇动事件

http://www.cnblogs.com/dabaopku/archive/2012/06/11/2544490.html

iphone接收摇动事件

关键词: ios iphone shakegesture UIView

在 ios3.0 之后, UIView 提供了三个函数接收摇动事件

代码语言:javascript
复制
motionBegan:
代码语言:javascript
复制
代码语言:javascript
复制
motionEnded:
代码语言:javascript
复制
代码语言:javascript
复制
motionCancelled:

只需要继承 UIView 并实现以上函数即可.

需要注意的事项:

1. 这个UIView要成为事件响应者, 也就是显示之后 becomeFirstResponder

2. 更加重要! 这个 UIView要实现 canBecomeFirstResponder函数并且返回 YES.否则上一条建议无效.

参考资料: http://www.iphonedevsdk.com/forum/iphone-sdk-development/4381-iphone-shaking-code.html

motionBegan: motionEnded: motionCancelled:

6 ios 调用googleapi 实现语音识别

ios 调用google api 实现语音识别

http://blog.csdn.net/reylen/article/details/8709457

ios 调用google api 实现语音识别

http://blog.csdn.net/ixijiangyue123/article/details/8883222

7 ios 音频处理

iOS底层音频处理技术(带源代码)

http://www.cocoachina.com/newbie/basic/2011/1122/3563.html

Iphone检测声音输出设备及耳机麦克风的处理

http://blog.sina.com.cn/s/blog_6c234ba90101a5nd.html

检测iphone麦克风

http://sxsoul.blog.163.com/blog/static/42849160201010825817519/

获取麦克风的声音数据流

http://www.cocoachina.com/bbs/read.php?tid=78224

http://ios.eoe.cn/thread-11635-1-1.html

8 ios音频队列服务编程指南

音频队列服务编程指南

音频队列服务编程指南(AudioQueue Services Programming Guide)(一)

http://blog.csdn.net/just_we_0727/article/details/8200853

(二)

http://blog.csdn.net/just_we_0727/article/details/8201023

(三)

http://blog.csdn.net/just_we_0727/article/details/8373440

9 ios数据绑定

关于 PickerView数据源的问题

http://blog.sina.com.cn/s/blog_69ee96d70100kz8r.html

PickerView的工作方式是怎样的

http://www.cocoachina.com/bbs/simple/?t22239.html

PickerView数据源的绑定在“无形”之中,因为并不是采用一种可视的方法,比如xxxx.dataSource = myDataSource,而是通过实现协议的方式,对于UIPickerVIew,需要实现如下等若干协议

10 交叉编译libogg & libvorbis

交叉编译libogg& libvorbis

http://blog.163.com/dong_xiao_yang/blog/static/21613820520132125548615/

Tutorial: Open Source on iOS (Part 2): Compiling libogg oniOS

http://iosdeveloperzone.com/2012/09/29/tutorial-open-source-on-ios-part-2-compiling-libogg-on-ios/

Cross Compiling libogg for iOS

http://stackoverflow.com/questions/11711100/cross-compiling-libogg-for-ios

11 ios传感器总结(1)

ios传感器总结(1)

http://blog.csdn.net/shaobojohn/article/details/7843104

12 iosUIView事件注册

UIView事件注册

http://menglinger-520.blog.163.com/blog/static/16929433020117584733320/

13 ios进度条的实现

进度条的实现(MBProgressHUD)

http://blog.csdn.net/weasleyqi/article/details/8072897

14 ios录音功能的实现

ios录音功能的实现

http://blog.csdn.net/rs_network/article/details/6988447

iOS 录音Wav 音频 转换 Amr ,Android 播放

http://blog.csdn.net/justinjing0612/article/details/9633121

http://code4app.com/ios/Sound-Recorder/4f9252d606f6e71769000000

15 Xcode引用文件注意

Xcode引用文件时,不要直接拷贝文件到项目目录,再以添加引用的形式引用,这时有可能报“找不到文件”错误,而且引用的文件目录是蓝色的,最好是直接饮用,选择copyitem的方式

16 ios'libxml/xmlversion.h' file not found in xcode 4.2?

'libxml/xmlversion.h' file not found in xcode 4.2?

http://stackoverflow.com/questions/8850724/libxml-xmlversion-h-file-not-found-in-xcode-4-2

Rememberto add the library in Link Binary en Build Phases Section of the targetproject.

Youneed to put all the libxml headers on the include path. For Xcode do this byadding /usr/include/libxml2 tothe header paths (that will pass -I/usr/include/libxml2 to the c compiler)

This is in the build settings tab in SearchPaths -> Header Search Paths

17 iosASIHTTPRequest类库简介和使用说明

ASIHTTPRequest类库简介和使用说明

http://www.cnblogs.com/dotey/archive/2011/05/10/2041966.html

ASIHTTPRequest 类库在iOS 7.0 中需要修改的地方

http://blog.s135.com/post/490/

代码技巧之ASIHttpRequest类库的使用

http://bbs.9ria.com/thread-259725-1-1.html

18 ios相对路径与绝对路径的转化NSBundle

ios相对路径与绝对路径的转化NSBundle

http://blog.csdn.net/zi2xuan/article/details/7319210

iOS的相对路径和绝对路径

http://wiki.eoe.cn/page/iOS_blog_page_98641.html

19 NSString字符串相加连接

NSString字符串相加连接的三种方法

http://blog.sina.com.cn/s/blog_56e2f4250102dusl.html

Objective-C语法之NSString字符串的那些事儿(三)

http://blog.csdn.net/xys289187120/article/details/6777283

20 iosXCode clang failed with exit code 254

原因:

进入IOS虚拟机,然后直接打开了共享目录中的Xcode工程进行编译;

XCode clang failed with exit code 254

http://stackoverflow.com/questions/17426810/xcode-clang-failed-with-exit-code-254

clang failed with exit code 254 only for iOS device target

http://stackoverflow.com/questions/11984074/clang-failed-with-exit-code-254-only-for-ios-device-target

iOS 5 - Apple LLVM compiler 3.0 error

http://www.cnblogs.com/mfryf/archive/2012/02/26/2369190.html

21 正则表达式

匹配几个字符串之一:

Var tagnameRex = /(div|font|table|ol|ul)/I; 查找任何指定字符串

【整理】关于用正则表达式处理html代码方面的建议

http://www.crifan.com/for_process_html_with_many_tag_recommend_use_third_lib_while_simple_html_use_regular_expression/

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • IOS开发问题解决方法索引(二)
  • 1 不使用ARC编译,-fno-objc-arc
  • 2 SIGABRT错误的调试办法
  • 3 Compileerrors with #include <string> in Cocoa App
  • 4 如何解决Couldnot launch app - No such file or directory
  • 5 iphone 接收摇动事件
  • 6 ios 调用googleapi 实现语音识别
  • 7 ios 音频处理
  • 8 ios音频队列服务编程指南
  • 9 ios数据绑定
  • 10 交叉编译libogg & libvorbis
  • 11 ios传感器总结(1)
  • 12 iosUIView事件注册
  • 13 ios进度条的实现
  • 14 ios录音功能的实现
  • 15 Xcode引用文件注意
  • 16 ios'libxml/xmlversion.h' file not found in xcode 4.2?
  • 17 iosASIHTTPRequest类库简介和使用说明
  • 18 ios相对路径与绝对路径的转化NSBundle
  • 19 NSString字符串相加连接
  • 20 iosXCode clang failed with exit code 254
  • 21 正则表达式
相关产品与服务
语音识别
腾讯云语音识别(Automatic Speech Recognition,ASR)是将语音转化成文字的PaaS产品,为企业提供精准而极具性价比的识别服务。被微信、王者荣耀、腾讯视频等大量业务使用,适用于录音质检、会议实时转写、语音输入法等多个场景。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档