simulator

Could not load NIB in bundle: 'NSBundle'

偶尔善良 提交于 2019-11-26 20:53:10
问题 What is the error listed below? 2011-02-23 21:24:12.218 Success[7238:207] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/jimkillen12/Library/Application Support/iPhone Simulator/4.2/Applications/BAA5E0E7-AF12-4301-A4F8-1B9797C9E82D/Success.app> (loaded)' with name 'MainWindow-iPad'' 回答1: One of your NIB file is missing from project, add the required NIB file: In Build Phases expand Copy Bundle Resources

How can I reset the iOS Simulator from the command line?

好久不见. 提交于 2019-11-26 19:42:24
I need to reset the iPhone Simulator a lot, and haven't found a way to do it without using the mouse. It's a small thing, but I'm really sick of doing it and would love to have a way to do this using a keyboard shortcut. Even better would be a way to reset it from the command line, so I could build a reset into a deploy script. I am not very familiar with iOS or MacOS. Just run this in the terminal: xcrun simctl erase all improvement suggested by @txulu, just kill the simulator before execute the clean: killall "Simulator" 2> /dev/null; xcrun simctl erase all In Xcode 6, DO NOT JUST DELETE THE

Xcode 6.4 showing duplicate 'Simulators' with Unique Id

会有一股神秘感。 提交于 2019-11-26 18:48:02
问题 Till yesterday, everything was normal with Xcode. It was showing simulators as : But today, when I opened it, simulator list changed to : Every simulator can be seen twice, name followed by a unique id. I have also observed that same named Simulator are also two different instances. Can anyone help me, how to get rid of this ? Or how to reset it. It gives a weird look. Any suggestion will be helpful. 回答1: I have an easier way to fix this. Run the following: xcrun simctl list devices | grep -v

ios simulator: how to close an app

可紊 提交于 2019-11-26 18:47:49
问题 When you "run" the simulator from xCode, the app automatically launches, and then you can click the home button to suspend the app. What I want to do is close the app from within the simulator. So, how can this be done? 回答1: You can also do it with the keyboard shortcut shown under the simulator menu bar (Hardware-> Home). The shortcut is ⌘ + ⇧ + H , but you need to hit H twice in a row for it to simulate the double press that shows the apps. 回答2: For iOS 7 & above: shift+command+H twice to

Application not getting deployed on Blackberry simulator

浪子不回头ぞ 提交于 2019-11-26 18:32:24
问题 I am tried deploying .cod,.alx.jar files on blackberry simulator 8100;the application is not getting deployed on phone.I am using Blackberry plugin for Eclipse. How can I solve this issue? Please help Update Hi, Thanks for your reply. I am trying to run the application the way you suggested. Do I need to setup new run configuration every time I run any project? What should be default value for build configuration ? [Debug,Private,or Release] 回答1: Copying the .cod files into the simulator's

Can we test Face ID in simulator?

旧城冷巷雨未停 提交于 2019-11-26 16:57:53
问题 Can we test biometric authentication using the simulator? The iPhone X Simulator shows a menu for Face ID enrollment, but after enabling that, what can I do? How it will recognize a face for authentication? 回答1: Simulator does not recognise a face but allows you to simulate a matching and non-matching faces, if you've enabled Enrolled option from Face ID . Add following code to your view controller and try with Face-ID import LocalAuthentication class ViewController: UIViewController {

Is there a way to simulate multiple iphones using xcode/iphone sim?

折月煮酒 提交于 2019-11-26 16:15:56
I'm planning out a game that requires multiple users and I was wondering if there's a way to fire up multiple instances of the iPhone Simulator. I didn't see anything in menus or in Google search results, but I just wanted to make sure I wasn't missing anything. As near as I can tell, not only can you not have multiple instances of the simulator running, but when time comes for actual device testing you can't have multiple instances of the debugger running either. This means to do multi-device apps, you'll need to have a single Mac assigned to a single iPhone/touch device (or simulator

How to resize the iPhone/iPad Simulator?

不羁岁月 提交于 2019-11-26 16:00:56
The iPad-simulator is really small (like one third the size of the real iPad screen) on my 23" Full-HD screen (and also on the 15" MacBook Pro ). Is there a way to resize it? I know it must maintain size and dpi-ratio to prevent sub-pixels, but I can hardly see anything withoout a magnifier. ⌘ + 1 for 100% ⌘ + 2 for 75% ⌘ + 3 for 50% Xcode 9.x : Select Simulator Goto Window tab Select Physical Size option ( cmd + 1 ) Now if this dosen’t make size as per your interest then follow below steps : Select Simulator Goto edge of simulator . This will convert your cursor to resize option

Xcode 4.2 SIGABRT Error

走远了吗. 提交于 2019-11-26 14:29:50
问题 Everytime I run my app on the iPad simulator, it works flawlessly. But, when I run it on the iPhone simulator, when I click the home button, I get an error in Xcode in my main.m file, saying "Thread 1: Program received signal: SIGABRT". It is highlighting this line in my main.m's code: return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); This issue doesn't occur when I press the home button on the iPad simulator at all though. I've done a lot of research on here

Adjusting the Xcode iPhone simulator scale and size [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 14:18:47
This question already has an answer here: How to resize the iPhone/iPad Simulator? 11 answers Is there anyway to make the iOS simulator for iPhone 5 in Xcode, be the actual size of the iPhone 5. I'm getting a huge display and things seemed to be scaled. You can't have 1:1 ratio. Read about screen resolutions. However you can scale it from the iOS Simulator > Window > Scale menu. Good Luck. With Xcode 9 - Simulator, you can pick & drag any corner of simulator to resize it and set according to your requirement. Look at this snapshot. Note: With Xcode 9.1+, Simulator scale options are changed.