ios-simulator

Run .app file in iOS 8 simulator

无人久伴 提交于 2019-12-03 03:45:21
I have a .app file shared from a developer which i would like to run in iOS 8 simulator. I have seen similar questions which has solutions for older versions of iOS which is no longer working for iOS 8. Can someone point out what needs to be done to run the .app file in an iOS 8 simulator without using xcode. Boot the simulator you want to install it to in the iOS Simulator and then do the following: xcrun simctl install booted /path/to/Your.app xcrun simctl launch booted com.yourcompany.yourapp The "booted" token was not supported on older versions of simctl in Xcode 6.0. If you get an error,

Action Trigger when I hold UIButton for 2 second in iPhone

有些话、适合烂在心里 提交于 2019-12-03 03:11:13
I have a UIButton in my application and an action which is triggered when I TouchDown UIButton . Is it possible to detect a Touch-and-Hold on the UIButton on the iPhone? I want my action to trigger when the user holds the button for 2 seconds or more. Any Ideas? UILongPressGestureRecognizer is what you need. For example, UILongPressGestureRecognizer *longPress_gr = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(doAction:)]; [longPress_gr setMinimumPressDuration:2]; // triggers the action after 2 seconds of press [yourButton addGestureRecognizer:longPress_gr]; To let

How to import contacts from Mac OS X AddressBook into iPhone Simulator

五迷三道 提交于 2019-12-03 02:49:06
Is there a way to import contacts automatically from my Mac OS X Address Book into the iPhone Simulator Contacts app? Or vCards or anything like that? I'm building an app that displays contacts in various ways and I'd like to have a way to have lots of contacts without typing them all in myself. This solution worked for me, and was incredibly easy. The question asks about how to get Mac OSX contacts into the iOS Simulator. If you sync your iPhone with your Mac, then perform an unencrypted backup of your iPhone in iTunes, this solution will work: Quit the iOS Simulator Download iPhone/iPod

Is there a way to get iOS 7 simulator on Xcode 7

≡放荡痞女 提交于 2019-12-03 02:37:49
I just updated my Xcode to the newest version (7.0 7A220) and I lost the iOS 7 simulator that I had in the previous version. I still have the iOS 7 SDK and was wondering if there is way to use it on the newest version of Xcode, instead of installing another version of Xcode on my OS X. Gobi M As for my initial analysis referred from link you cant install it and use older version of Xcode version for using respective iOS simulators. To use iOS 7.1 go for Xcode 6.4 or earlier. Install Xcode 6.4 and download respective simulator from Preference. To download older version of Xcode you need to

Can't visit website on iOS Simulator—'This Connection Is Not Private'

荒凉一梦 提交于 2019-12-03 02:08:10
I'm currently building a watch app extension and want to use the simulator because it is much easier and quicker than building to my actual Apple Watch every time. However, I've run into a problem with the simulator where I can't visit any websites due to the error 'This Connection Is Not Private'. This wouldn't normally be a problem except in my case I need to login into my iOS using Facebook and I face the same problem there. The message is slightly different when using SFSafariViewController : Safari cannot open the page because it could not establish a secure connection to the server I

Copy from Mac OS X does not copy to iPhone Simulator

放肆的年华 提交于 2019-12-03 01:50:57
问题 In my iPhone app, I have many ASCII arts which I need to insert into the database. I am using the simulator and pasting the textpic in the textview to insert the ASCII art to database. Here the clipboard of simulator once pastes the art properly but when I copy another art then too it pastes the previous art into textview. How to solve this problem? Is there a work around for this or any better approach? 回答1: I was getting frustrated with copy and paste in the simulator and couldn't figure

How to remove older unneeded devices?

[亡魂溺海] 提交于 2019-12-03 01:32:51
So this is related to a prior question I posted - how to remove 4.3 simulators . I stupidly installed the iOS 5.0 Simulator, and now the technique offered in my last post does not work. When you remove the 5.0sdk, then restart Xcode, it forces you to install the legacy simulators or quit. I even deleted Xcode 4.4 and re-installed it to no avail (it must store my unfortunate choice deep in the preferences file). The reason I want to get rid of it is that the Scheme popup now has 5 options in it instead of 3, making it a real pain to test a Universal App. EDIT: When I cd to ~/Library/Caches/com

Unable to look up screen scale and Unexpected physical screen orientation in Xcode 10

℡╲_俬逩灬. 提交于 2019-12-03 01:28:31
问题 I have recently updated Xcode to version 10, and now my console displays: MyApp[1618:133310] [AXMediaCommon] Unable to look up screen scale MyApp[1618:133310] [AXMediaCommon] Unexpected physical screen orientation MyApp[1618:133310] [AXMediaCommon] Unable to look up screen scale MyApp[1618:133310] [AXMediaCommon] Unable to look up screen scale MyApp[1618:133310] [AXMediaCommon] Unexpected physical screen orientation This only happens when I am running the app in the simulator. I have not

Failure to stop executing task in Xcode 4.3

谁说我不能喝 提交于 2019-12-03 01:17:44
I just installed Xcode 4.3 and I'm having some issues with stopping my app while running in the iOS simulator. I'm able to quit the simulator, but I cannot stop the task from running, either by hitting the stop button, or using the keybinding. In order to stop the process, I literally have to quit Xcode and restart. This obviously makes any development at all very difficult. I found this bugreport: link , which sounds very similar to the issue I'm seeing. Is this a known issue with 4.3, or has anyone else experienced this behavior? I haven't used Xcode for over a year now (v3), so I can't say

Xcode 10 simulator runtime is not available: runtime profile not found error

筅森魡賤 提交于 2019-12-03 01:07:27
While trying to run the simulator with iOS 11 in Xcode 10 Version 10.1 (10B61), sometimes this error occurs: " The com.apple.CoreSimulator.SimRuntime.iOS-11-4 simulator runtime is not available. runtime profile not found " The 11.4 simulator runtime is an external disk and it's well connected. Maybe that happens when I connect the external disk after opening the Xcode. How can I refresh the list of the available simulator runtime profiles? Just run sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService to restart the Simulator service. 来源: https://stackoverflow.com/questions/53261256