ios-simulator

How to install apps on Xcode 6 iOS Simulator

∥☆過路亽.° 提交于 2019-11-28 19:11:31
I'm looking for a way to install the mail application on the Xcode 6 iOS Simulator. Additionally, how do I install apps that are already public on the Appstore so that I can run them on the iOS Simulator? Is there a simple way? The most common way to install an app in the iOS Simulator is to use Xcode to build and install it. If you have a simulator app bundle which was built by someone else (or archived), you can install it using simctl: xcrun simctl install booted /path/to/your.app Keep in mind, of course, that these apps need to be iOS Simulator apps, not iOS Device apps. The iOS simulator

Can't use HTTP in iOS 8 simulator

匆匆过客 提交于 2019-11-28 19:10:02
I have installed xcode 6, beta 7 on a MacBook Pro. When I try to use the iOS simulator running iOS 8, and try to connect to any site that is not using HTTPS, I get a blank page stating that "Safari cannot open the page because the network connection was lost" in the simulator. Any page that uses HTTPS works fine. I have tried various solutions for problems like this, but none of them have worked. These various solutions include restarting the Mac, uninstalling xcode 6 and reinstalling it, and all the proposed solutions in these 2 links: Unable to run app in Simulator : Xcode beta 6 iOS 8

iOS Simulator v5.1 window is missing device frame and Home Button

风格不统一 提交于 2019-11-28 19:09:15
Is there a way to revert the look & feel of iOS Simulator window back to how it used to look in 5.0 and older versions? P.S. I know Cmd-Shift-H shortcut for Home Button. For anyone who comes here with this problem, but does not read the comments, you can get it back by hitting CMD-1 (as noted above), but it will only show for the full size emulation, if you want it zoomed out, it goes away. then you have to use the shift-cmd-H to click the home button. And you can do it twice to simulate the click-click to show running apps, and then close them. (Don't press and hold tho, that will just

Xcode 4.6 zXing compile error after Xcode update (4H127)

烈酒焚心 提交于 2019-11-28 18:52:38
Different projects using ZXing have error after last Xcode update: Error messages are: private field 'cached_y_' is not used Private field 'bits_' is not used Private field 'cached_row_num_' is not used Private field 'dataHeight_' is not used Any compiler flag I have to set up? Just add this flag -Wno-unused-private-field under ZXingWidget target -> Build Settings -> Other Warning Flags. Click the + button and paste the flag, clean and build again. (No need to remove any other flag, just ignore unused private field warning) Here is a workaround to get it to compile. You have remove couple

Run logic tests in Xcode 4 without launching the simulator

被刻印的时光 ゝ 提交于 2019-11-28 18:15:56
I want to run tests in Xcode 4 using OCUnit without launching the simulator. Please, don't try and convince me I am doing unit testing wrong or anything like that. I like to do TDD the traditional way: write the API for the class in the tests, then make the class pass the tests. I will write separate tests that are end-to-end that run in the simulator. If there's no way to do this, then please can someone tell me how to have the test harness not instantiate the whole app? My app is event driven, and it sends a bunch of events through when it starts up that mess with my tests. Please can

iOS: How to debug “freshly launching” an app from a URL

[亡魂溺海] 提交于 2019-11-28 18:12:57
问题 When launching an app from a URL, there is a distinction between whether the URL is freshly launching an app, or if it's resuming an app that has been put into a suspended state. My question is, how do I debug the process of a "fresh launch" from a URL? Hitting "Run" in Xcode automatically opens the app. Then, I have to suspend the app to reach Safari and access my test site. But if I close my suspended app, Xcode is no longer attached to it and I'm unable to debug. 回答1: These steps can be

Destination toolbar disappeared on XCode 6.4

做~自己de王妃 提交于 2019-11-28 17:43:34
Today in the morning I tried to compile my project to run in my device and I found the destination toolbar disappeared and I cannot choose my IOS device or IOS Simulator device as target. (I can do it in the Product/Destination Menu) After some research I found the >> at the right on the screen and when I pushed a Scheme option appeared but it is disabled and I can't enable again. This is what I tried with no success: Open an old project to see if the problem was in my project Create a new project (with Swift and Objective C but I don't think this make any difference) Restart my computer Hide

UIDevice Orientation

非 Y 不嫁゛ 提交于 2019-11-28 17:39:47
I have the following code in a method. When I run this in the simulator the debugger skips right over the code?? What am I missing? if (([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeLeft) || ([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeRight)) { } else { } Update 2 This shouldn't matter, but try turning on orientation notifications: [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(detectOrientation) name:@"UIDeviceOrientationDidChangeNotification

Logout from AppStore on iOS Simulator

一笑奈何 提交于 2019-11-28 17:25:44
Since 5.0, iOS simulator has StoreKit support so you can debug your In-App purchases without device. But, it has one issue. Once logged in (make In-App purchase) I can't change AppStore login. Settings has not "AppStore" item, so I can't "logout" from account. I tried to delete application from simulator, restart simulator, delete test user from iTunesConnect — no success. Screen of the problem Any idea? Tushar There is another way to log out from that sandbox account without "Reset Content & Settings" . Just remove the files from the following path in your home directory : ~/Library

Changing language on iOS 8.1 simulator does not work

天大地大妈咪最大 提交于 2019-11-28 17:21:35
If I change the language on an iOS 8.1 simulator to anything and try to detect this from code with NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0]; NSLog(@"Language: %@", language); I get "en" back. I've tried resetting the navigator, etc. I've tried this using the iOS 7.1 runtime (in Xcode 5.1.1), and it worked fine. Has anyone managed to find a workaround to this problem? According to the release notes this is a known issue. There is a work around. If you go to "Edit Scheme..." then the "Options" tab there's an "Application Language" option. This only affects the