最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[已解决]Xcode调试app始终处于启动界面

Xcode crifan 4610浏览 0评论

Xcode调试app,结果始终处于启动界面:

进不去了。。。

换了iOS模拟器:iPhone 5,iPhone6都不行

换了iPhone 6真机,也还是不行。

感觉是Xcode本身出问题了?

因为刚才遇到代码高亮实效了。然后又好了。

重启Xcode试试。

还是不行,但是看到错误了:

2016-03-17 14:04:39.907 JianDao[4590:128258] Unknown class _TtC7JianDao14ViewController in Interface Builder file.
didFinishLaunchingWithOptions
2016-03-17 14:04:39.953 JianDao[4590:128258]
<span style=”font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; font-weight: bold;”–<————————- JPush Log —————————-
<span style=”font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; font-weight: bold;”–<——————JPush SDK Version:2.1.0———————
<span style=”font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; font-weight: bold;”–<————————————————————–
<span style=”font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; font-weight: bold;”–<————————————————————–
2016-03-17 14:04:39.954 JianDao[4590:128258] JPush WARNING! APNs is NOT supported on simulator
applicationDidBecomeActive 2016-03-17 06:04:41 +0000
prevStoredUser=Optional(“xxx”)
prevStotedPassword=Optional(“111111”)
JianDao(4590,0x4da9000) malloc: *** mach_vm_map(size=8388608) failed (error code=3)
*** error: can’t allocate region securely
*** set a breakpoint in malloc_error_break to debug
(lldb) 

换成iPhone 6真机试试

然后真机一直输出:

2016-03-17 14:13:59.155 JianDao[612:84747] Unknown class _TtC7JianDao14ViewController in Interface Builder file.
didFinishLaunchingWithOptions
2016-03-17 14:13:59.323 | JPUSH | I – [JPUSHService]
<span style=”font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; font-weight: bold;”–<————————- JPush Log —————————-
<span style=”font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; font-weight: bold;”–<——————JPush SDK Version:2.1.0–build:346———-
<span style=”font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; font-weight: bold;”–<—————AppKey:3a1a8d7c1caa422ee5548da3—————-
<span style=”font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; font-weight: bold;”–<————————————————————–
2016-03-17 14:13:59.340 | JPUSH | I – [JPUSHClientController] Action – setup
applicationDidBecomeActive 2016-03-17 06:14:01 +0000
prevStoredUser=Optional(“xx”)
prevStotedPassword=Optional(“111111”)
2016-03-17 14:14:01.459 | JPUSH | W – [JPUSHClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed?  or there is no APNs register code? Please refer to JPush docs.
2016-03-17 14:14:03.440 | JPUSH | W – [JPUSHClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed?  or there is no APNs register code? Please refer to JPush docs.
2016-03-17 14:14:05.440 | JPUSH | W – [JPUSHClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed?  or there is no APNs register code? Please refer to JPush docs.

然后就一直输出:

2016-03-17 13:58:40.147 | JPUSH | W – [JPUSHClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed?  or there is no APNs register code? Please refer to JPush docs.

暂时去掉JPUSH的代码:

//        //1.reggister device
//        JPUSHService.registerForRemoteNotificationTypes(UIUserNotificationType.Badge.rawValue | UIUserNotificationType.Sound.rawValue | UIUserNotificationType.Alert.rawValue , categories: nil)
//        JPUSHService.setupWithOption(launchOptions, appKey: JpushAppKey, channel: JpushChannel, apsForProduction: JpushIsProduction)
//        listenRemotePush()

结果:

一直没反应

换了模拟器,结果是等了足够长时间后:

[已解决]swift中调试app出错崩溃:malloc mach_vm_map size  failed error code 3

转载请注明:在路上 » [已解决]Xcode调试app始终处于启动界面

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.185 seconds, using 22.03MB memory