ios-simulator

Logout from AppStore on iOS Simulator

筅森魡賤 提交于 2019-11-27 10:27:25
问题 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? 回答1: There is another way to log out from that sandbox account without "Reset Content &

Changing language on iOS 8.1 simulator does not work

醉酒当歌 提交于 2019-11-27 10:24:41
问题 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? 回答1: According to the release notes this is a known issue. There is a work around. If you go to

How to change Xcode Project name

ε祈祈猫儿з 提交于 2019-11-27 10:18:36
I have developed my app in Xcode for iPhone, in start I have just named it without secnec now I want to change my app name I have replace my old app name with new one as I have found the name in my app, but its still giving me one error... Desktop/New name/old name_Prefix.pch: No such file or directory when I have change oldname_prefix.pch with newname_prefix.pch .. For Xcode 4 or later: Open a project Select Project Navigator Highlight project name Single click on project name For Xcode 3: Open a project > Menu > Project > Rename ... There is no need to change the name of the project in order

FBSOpenApplicationErrorDomain error 1

大憨熊 提交于 2019-11-27 10:15:37
问题 I'm trying to run my iOS app that was migrated from Swift 1.2 to Swift 2.0 in Xcode 7 using iPhone Simulator (any), I'm getting the following error: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.) I already tried to reset simulator settings and content, quit Xcode, clean project, etc. 回答1: I had the same error after updating Xcode to v7.0. After few hours struggling, I found that there was some empty environment variable setup to be passed for Run action in my

Stop “developer tools access needs to take control of another process for debugging to continue” alert

瘦欲@ 提交于 2019-11-27 10:14:14
I recently upgraded to 10.7.3, and when I try to debug my iOS project in the simulator for the first time after logging in, I'm prompted with the following two alerts: My user is an admin user. I never saw these alerts before. How do I get them to stop? EDIT I've verified that I'm a member of the _developer group using id -a . There's a much simpler solution for this. Try running the following command: sudo /usr/sbin/DevToolsSecurity --enable enable develoer mode: In Terminal run this: DevToolsSecurity -enable Per Zev Eisenberg's answer, reinstalling Xcode 4.2.1 worked. However, it might be

GPX files for iOS Simulator [closed]

血红的双手。 提交于 2019-11-27 10:07:14
问题 Where I can find GPX file of any region that I can import to my iOS Simulator? iOS simulator does contain only static locations around the world (from XCode) or walk/bike/car drive in simulator itself. This is not good enough for unit testing or other specyfic cases. Schema for GPX file: http://www.topografix.com/GPX/1/1/gpx.xsd Is there a database or hidden option in Google maps to get location? 回答1: You create a route and generate a gpx file here - http://www.bikehike.co.uk/mapview.php On

Xcode 5 - “iOS Simulator failed to install application” every time I switch simulators

纵然是瞬间 提交于 2019-11-27 09:42:44
问题 Using Xcode 5 GM, anytime I switch to the 5.1, 6.0 or 6.1 simulators to test, I get the error "iOS Simulator failed to install application." When I reset the simulator it works, but this is getting very tiring. Anybody have a permanent fix or workaround? 回答1: Looks like this is a known issue. From the Xcode 5 release notes: After switching the minimum deployment target of an application from iOS 7.0 to a release prior to iOS 7.0, building and running the application may fail with the message

Assigning an existing CGColor to a CGColor property works in iOS Simulator, not iOS device. Why?

给你一囗甜甜゛ 提交于 2019-11-27 09:17:08
I know how to fix the problem that I am about to outline, however, I am a bit baffled as to why the code scenario works in the iOS simulator but not on my iPad. I have a method that checks various properties, and then sets the background color of a CALayer depending on the state of a property. The following code is similar to my method of color assignment: //This will be the CALayer BGColor... CGColor c = UIColor.blueColor.CGColor; //Blue is the default switch (myState) { case state_one: c = UIColor.greenColor.CGColor; //... more code ... break; case state_two: c = UIColor.redColor.CGColor; //

run app using xcode 4.6 in ios 4.3 simulator

非 Y 不嫁゛ 提交于 2019-11-27 08:42:42
问题 I am actually trying to run my application in 4.3 simulator from xCode 4.6. I copy the sdk for simulator 4.3 at the path, it builds successfully but cant run the application in simulator. So now what can I do to solve the problem? Thank you in advance 回答1: If you are using Mac OS 10.7.x and have upgraded to Xcode 4.6, then you could have or download simulator 4.3 version. But, if you are using Mac OS 10.8.x, then you can not have simulator 4.3 version. The reason is 4.3 simulator on Mac OS 10

fopen$UNIX2003 fails inside external library

不想你离开。 提交于 2019-11-27 08:20:15
问题 I have an external static library (I have the source code as well) that uses 'fopen' to access files on the filesystem. The strange thing is that it always fails both on simulator and device when it tries to do so with EXE_BAD_ACCESS inside fopen$UNIX2003 (not in fopen , fopen is not even in the call stack when the exception is thrown. I've tried to use fopen directly myself with the same path/options and it works. So, first of all, is it possible that the library is somehow calling a