iPhone应用程序没有在模拟器上启动,没有错误
【腾讯云】亏本大甩卖,服务器4核16G 1年370元(带宽12M,系统盘120GB SSD盘,月流量2000GB)!!!!!!
云产品 配置 价格
服务器 1核2G,带宽5M,系统盘50GB SSD盘,月流量500GB 38元/年
MySQL 1核1G 19元/年
服务器 16核32G,带宽18M,系统盘250GB SSD盘,月流量5000GB 1197元/年
点我进入腾讯云,查看更多详情

I'm having a problem where my (simple) iOS app builds fine, says running but on the simulator I just get a blank screen. In xCode, it still says "Running XXXX on iPhone 5.0 Simulator" but also give a "Thread 1: signal SIGABRT";

There are no readable errors in the bottom window, just:

argc = (int) 1
argc = (char **) 0xbffff578

It has been absolutely fine until now. I had the problem after trying to swap out a few images and their @2x versions for ones that I'd slightly tweaked.

I've done a clean and I have cleaned the build folder. I have also emptied the DerivedData folder and tried rebooting. I've tried to add breakpoints in my AppDelegate in the didFinishLaunchingWithOptions method, but it seems to never reach them.

Pretty much run out of things I can think of to try.

Debug Navigator:

enter image description here

Edit:

When I comment out:

@property (strong, nonatomic) UIWindow *window;

from @interface AppDelegate

and comment out

@synthesize window = _window;

from @implementation AppDelegate, it loads fine albeit with a blank screen because I guess the window is not loading.

#0

This might help you as it helped me

Xcode->Product->Edit Scheme

here you can see "Executables" set here "yourappname.app" and it will start working quite fine

#1

Extending on Ashar's answer (as it worked for me).

First click into "Edit Scheme", pictured below.

click edit scheme

Then in the popup that appears, click Run [Your App Name] and set the Executable dropdown menu to [Your App Name].app, pictured below. click Run<App Name>, set executable

This fixed the issue for me. Hope it helps.

#2

Have you already reset the Simulator?

#3

Why don't you make an empty project, check if it runs, and then copy your classes in your new project? It will probably work

#4

Line 10 is throwing an exception. It would help a lot if you can figure out what is the specific exception, which you might be able to do by examining the state at line 9.

However, seeing how early in the app startup this is happening, my guess would be that you have messed up your app resources - either you have changed the name of a required resource, or the resource is in the wrong format and the runtime doesn't know how to deal with it.

Since you mentioned you've modified some image, I'd venture to guess that the app you used to tweak it produced a different format of the image. I would try replacing the images back with the original version you know used to work, and then start swapping them with the modified one by one, until you isolated one that breaks it. At that point you can examine the difference and figure out what's wrong with it.

#5

Maybe I'll say something stupid(probably), but according to you it happened after you replaced the images. Did you also delete them and use other names for images? I think that the problem might be that you used some image that is now missing.

It was just a random guess

#6

I ran into this one after upgrading to XCode 7.2. In my case, the solution was to manually delete the build folder and restart my computer. I'm sure this is not a universal solution, so YYMV.

推荐文章

更新到joomla 2.5后管理区域出现错误

更新到joomla 2.5后管理区域出现错误

推荐文章

将DLL导入eclipsejava项目

将DLL导入eclipsejava项目

推荐文章

如何为每个mercurial存储库设置不同的用户?

如何为每个mercurial存储库设置不同的用户?

推荐文章

从Linq查询表达式返回的数组数据不正确

从Linq查询表达式返回的数组数据不正确

推荐文章

如何删除Internet Explorer中ImageMap控件周围的蓝色边框?

如何删除Internet Explorer中ImageMap控件周围的蓝色边框?

推荐文章

成员函数隐藏自由函数

成员函数隐藏自由函数

推荐文章

无法使用.htaccess隐藏.php扩展名

无法使用.htaccess隐藏.php扩展名

推荐文章

在JPA端实现外键(在数据库中这个关系是nt实现的)

在JPA端实现外键(在数据库中这个关系是nt实现的)

推荐文章

允许第三方更改运行时共享库的最佳方法是什么?

允许第三方更改运行时共享库的最佳方法是什么?

推荐文章

在android应用程序中运行python脚本

在android应用程序中运行python脚本

推荐文章

Forem Gem on Rails 3.0版

Forem Gem on Rails 3.0版

推荐文章

CSS在2行后断开(使用相同的类)

CSS在2行后断开(使用相同的类)

推荐文章

DebugPackage是类型,不能用作异常

DebugPackage是类型,不能用作异常

推荐文章

检测开放式WiFi网络

检测开放式WiFi网络

推荐文章

如何在Netbeans调试过程中改变行高亮显示的背景色?

如何在Netbeans调试过程中改变行高亮显示的背景色?

推荐文章

jQuery:fadeOut,shuffle,fadeIn(在shuffle时停止工作)

jQuery:fadeOut,shuffle,fadeIn(在shuffle时停止工作)