ios-simulator

How to set iOS Simulator Language when launching via simctl

北战南征 提交于 2019-12-23 00:48:05
问题 I am launching my app in the simulator using xcrun simctl . I would like to be able to set the language that the simulator launches with (ie. switch to French on one run, to Englash on another). Is there an option to do that? It used to be possible to use -AppleLanguages option to the Simulator, but that no longer appears to work (since Xcode 5.x). 回答1: Just figured this out myself: xcrun simctl launch <deviceid> <appid> -AppleLanguages "(en-GB)" or xcrun simctl launch <deviceid> <appid>

iphone simulator(10.3) time not showing according to timezone in mac OS (10.13)

你。 提交于 2019-12-22 18:35:10
问题 I have update my mac os to 10.13 beta version now it showing GMT time for my old simulator with ios version 10.3. its not displaying as per mytimezone(IST). even after reset it and region change of simulator its continuous showing GMT time only. 回答1: Apple says there are currently no plans to fix this, as per http://www.openradar.me/34812060 回答2: This fixed for me : export TIMEZONE="Australia/Sydney" sudo rm -rf /etc/localtime sudo ln -s /usr/share/zoneinfo/$TIMEZONE /etc/localtime 来源: https:

Ad Hoc iPhone SIGSEGV crash while Debug on device & simulator works

这一生的挚爱 提交于 2019-12-22 14:51:46
问题 App crashes immediately after I attempt to login so it can’t a be a watchdog memory issue Reason: _mh_execute_header App crashes upon attempting to make a network request using ASIHTTPRequest. Request never touches server. ASIHTTPRequest: I use -fno-objc-arc to omit ASIHTTPRequest from ARC. I believe that the following call is causing my problems since my call never even touches the server when I make a request. Any help would be greatly appreciated! Call: NSDictionary *response = [

Ad Hoc iPhone SIGSEGV crash while Debug on device & simulator works

拥有回忆 提交于 2019-12-22 14:51:03
问题 App crashes immediately after I attempt to login so it can’t a be a watchdog memory issue Reason: _mh_execute_header App crashes upon attempting to make a network request using ASIHTTPRequest. Request never touches server. ASIHTTPRequest: I use -fno-objc-arc to omit ASIHTTPRequest from ARC. I believe that the following call is causing my problems since my call never even touches the server when I make a request. Any help would be greatly appreciated! Call: NSDictionary *response = [

How to clear NSLog output from code?

被刻印的时光 ゝ 提交于 2019-12-22 14:27:10
问题 is there a way to clear console output from code? thanks. 回答1: SHORTCUT I PREFER : Simply USE ⌘ + K Keyboard Shortcut when you want to clear the NSLOG Data. 回答2: I don't think it's possible to do that in code. Though there is an option in XCode preferences ( Debugging tab ) called Auto Clear Debug Console . It will clear console output each time you run the application. That might fit your needs. 回答3: If you search the site, you will find several ways of manipulating NSLog. I use #ifndef _

Bug in XCode debugger?

家住魔仙堡 提交于 2019-12-22 10:57:32
问题 I am working on an iPhone app which is using an external library for which I have the source. During debugging some of the objects are listed as 0x0 in the debugger but the app runs fine. Also, some of the objects addresses point to the wrong thing. These symbols are in the external library. The addresses are fine if I am tracing through a file actually in the external library. Does anyone have suggestions how to stop this behavior? 回答1: UPDATE : target settings > Build tab > GCC 4.2 Code

Bug in XCode debugger?

为君一笑 提交于 2019-12-22 10:56:08
问题 I am working on an iPhone app which is using an external library for which I have the source. During debugging some of the objects are listed as 0x0 in the debugger but the app runs fine. Also, some of the objects addresses point to the wrong thing. These symbols are in the external library. The addresses are fine if I am tracing through a file actually in the external library. Does anyone have suggestions how to stop this behavior? 回答1: UPDATE : target settings > Build tab > GCC 4.2 Code

How do I turn off the Accessibility Inspector in the iOS 9 simulator?

六眼飞鱼酱① 提交于 2019-12-22 09:58:08
问题 The accessibility inspector is turned on by my KIF tests (apparently it's necessary for KIF to work.) Problem is, its window occludes controls some subsequent UI tests need to tap on and those tests fail. How can I turn the Accessibility Inspector off when my KIF tests are done with it so my UI Tests can run? (Turning it off "manually" from the simulator's Settings app is not a solution—I'm looking for something I can call from code, set in the target or...?) 回答1: It is not on by default. You

Local notifications are not working on device but working on simulator

假如想象 提交于 2019-12-22 09:09:42
问题 I've read some guides of how to use UILocalNotification 's. So I've tried and haven't succeed since my first try. To register notifications in AppDelegate.m I use: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... //if it is iOS 8 if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) { UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge

Taking the highlight off of Icons

余生颓废 提交于 2019-12-22 06:57:29
问题 When programming and looking at all different apps I have realized that some apps in the app store don't have the lit highlight on the top, making it look more 3D. I have an app idea but I need to take the highlight off. The app have been programmed in Xcode, so if anyone answers, that would be great. Thanks! 回答1: from http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html : If you choose, you can prevent iPhone OS from adding