简体   繁体   English

iOS-应用程式可在装置上运作,但无法在模拟器上运作(不再)

[英]iOS - app works on device but not on simulator (anymore)

I know already that there are topics like that, but nothing helped in my case ... 我已经知道有这样的话题,但对我来说没有任何帮助...

Here the info: 这里的信息:

The app worked both on simulator and device the whole time. 该应用程序始终可在模拟器和设备上运行。 I renamed the project recently into another name. 我最近将项目重命名为另一个名称。 Still worked both fine. 仍然都很好。 Today I realized that it didn't change the folder name and then it couldn't run anymore because it had somewhere the location saved from before. 今天,我意识到它并没有更改文件夹名称,然后就无法运行,因为它具有以前保存过的位置。 Then I gave the folder the old name again and it could build and run it on the device again. 然后,我再次给该文件夹起了旧名称,它可以再次构建并在设备上运行。 But weirdly enough it doesn't run on the simulator anymore. 但是奇怪的是它不再在模拟器上运行。

Funny thing is also that it said that the profiles were expiring, which weren't even related to that project so I deleted them. 有趣的是,它说配置文件即将到期,甚至与该项目都不相关,因此我删除了它们。 No errors, nothing. 没有错误,没事。 It just builds and directly finishes on the simulator. 它只是在模拟器上构建并直接完成。

The app is build for iOS6 and doesn't support earlier versions. 该应用程序是为iOS6构建的,不支持早期版本。 So it can't be the armv6 armv7 architecture problem ... 所以这不可能是armv6 armv7体系结构的问题...

What I also tried is the following: I zip every bigger version change and save it on an external HD (in case anything dies) and also have it uploaded at bitbucket. 我还尝试了以下操作:我压缩每个较大的版本更改并将其保存在外部HD(以防万一),也将其上传到bitbucket。 I reset my project to those old working versions and it neither ran on the Simulator. 我将项目重置为那些旧的工作版本,并且该项目均未在模拟器上运行。

Thanks in advance for further tips! 在此先感谢您提供其他提示!

I guess the problem should be in your simulator but not necessarily in your app. 我想问题应该出在您的模拟器中,而不一定是您的应用中。 Please have a try to: 请尝试:

  1. reset the simulator and retry 重置模拟器并重试
  2. if it still doesn't work, remove the app on simulator and re-install it via Xcode debugging 如果仍然无法使用,请在模拟器上删除该应用,然后通过Xcode调试重新安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iOS应用程序在模拟器中以后台模式工作,但在设备中不工作吗? - iOS app works in background mode in simulator but not in device? iOS应用可在模拟器上运行,但不能在真实设备上运行 - iOS app works on simulator but not on real device 应用程序在设备上崩溃但在模拟器 iOS 上工作 - App crash on device but works on simulator iOS 应用程序适用于模拟器但不适用于设备 - App works on simulator but not on device 在iOS模拟器上可以使用,但在iOS设备上不能使用吗? - Works on iOS Simulator but not on iOS device? iOS App在Simulator上运行正常,但在真实的iOS设备上崩溃 - iOS App works fine with Simulator but Crashes with a real iOS device IOs App可在模拟器上运行,但在设备上崩溃(主要是使用AVFoundation) - IOs App works on simulator but crashes on device (mainly using AVFoundation) 应用程序在Simulator(Xcode 7.1.1)中运行良好,但在iOS设备上运行不正常 - app works fine in Simulator (Xcode 7.1.1) but not on iOS device iOS应用程序不会在设备上编译,但在模拟器中工作正常 - iOS app won't compile on device but works fine in simulator iOS AdHoc应用程序可在模拟器中完美运行,拒绝在设备上启动 - iOS AdHoc app works perfectly in simulator, refuses to launch on device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM