ios开发莫名其妙的问题解集

本文提供了解决Xcode4附着应用名错误的方法,包括重启设备、确保产品名称一致、删除构建目录、检查启动选项等步骤。同时,对于使用GCDAsyncSocket或其他第三方库时遇到的问题,给出了包含所需框架、检查编译源文件等排除措施。

一、xcode4 attaching to appname问题解决方法:

please note, this is not a sequence of steps. each one is a possible solution:

1- restart xcode and/or restart simulator (reset content and settings) and/or restart computer.

2- click on project name in project navigator. in build settings tab, go to packaging and make sure that "Product Name" is the same that the one xcode says simulator is attaching to when running. if they are different, it will fail.

3- go to your projectname.xcodeproj folder. inside there delete anything named with your userid. when you reopen xcode those files will be recreated and it should work…

4- Manually delete the build directory for your project.

5- Go to organizer window. select Projects, select your app in the left hand side and then delete over "Derived Data"

6- Check Launch option is set to "Automatically" in Product->Edit Scheme, "Run" scheme.

7- In Project->"Edit Schemes"->Run. Change the Debugger from GDB to None (this doesn't make sense to me..).

8- Kill the process gdb-i386-apple-darwin from Activity Monitor. this is assuming gdb is not responding.

9- In "Product"->Edit Scheme. in Run, click yourappname.app, choose other, navigate to your .app in your project. now run.

10- Check that you don't have two different Info.plist in your project. if you do, remove the bad one.

试到第七步 Change the Debugger,改变成各种状态 问题解决~

 

二、使用GCDAsyncSocket时候(或者其他第三方库):

发生上述问题可能以及排除:

(1)少包含了framework --->包含相应的framework

(2)点项目->target->build phases -> Complie Source ,看看其中有没有你想要的资源文件.h+.m  ----->添加相应文件到其中就ok了

转载于:https://www.cnblogs.com/ligun123/archive/2012/04/06/2434302.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值