ios-simulator

How do I build a command line tool that links against the iPhone Simulator SDK?

馋奶兔 提交于 2019-12-08 06:58:42
问题 Why the hell would I want to do that? The OpenGL Shader Builder is a great development tool, but it compiles shaders using desktop OpenGL, which allows some things that ES does not. I figure if I can create a tool that links against the OpenGLES.framework in the iPhone Simulator SDK, I can get some error reporting without having to build/install/run my application. By inspecting the command lines appearing in the Xcode build window, I got as far as this (in Makefile format, for clarity.

Multiple projects using the simulator

醉酒当歌 提交于 2019-12-08 05:59:39
问题 I am comparing the run of multiple projects using the Xcode simulator. Each time I go to build in one project after having run one of the other projects Xcode tells me that it cannot perform the build and run because the simulator is in use. I then have to find the other project window, stop the run in the simulator (Cmd-.) and then switch back to the previous window and rebuild. Can I make a single keyboard shortcut to stop the current run in the simulator, build and run the current project

Xcode 7.1 Allocations Instrument SIP Throws a fit

六月ゝ 毕业季﹏ 提交于 2019-12-08 05:31:57
问题 Do I have to turn off System Integrity Protection to run allocations on the simulator? I'm wondering if anyone else is having this issue on Xcode 7.1? 回答1: I heard back from Apple today. If you look at the image I am running the simulator itself in instruments, rather than my app inside the simulator! Thought I'd post a follow up just in the unlikely event somebody else stumbles into this blunder. 回答2: No. You do not need to disable SIP for development with the Simulator (or any other part of

Zombie Processes from iPhone Simulator?

假装没事ソ 提交于 2019-12-08 04:57:00
问题 I've been working on apps for a while now and have just recently started noticing these zombie processes being produced for every launch of the app? I've now closed out Xcode and the simulator but they're just sticking around. Is there some new better way of testing your apps on the simulator that avoids this and/or why might this be occurring? ps aux . . . derek 2696 0.0 0.0 0 0 ?? Z 1:25PM 0:00.00 (Test App) derek 93243 0.0 0.0 0 0 ?? Z 9:00AM 0:00.00 (Test App) derek 89633 0.0 0.0 0 0 ?? Z

Does UI_USER_INTERFACE_IDIOM work with Targeted Device Family

邮差的信 提交于 2019-12-08 02:51:38
问题 So I'm currently using UI_USER_INTERFACE_IDIOM in conjunction with [[UIDevice currentDevice] model] to check if I'm on an iPhone, iPod or iPad. What I've found is that in the iPad simulator 3.2, UI_USER_INTERFACE_IDIOM still evaluates to UIUserInterfaceIdiomPhone (iPhone). I'm wondering if this has something to do with my Targeted Device Family setting. I'm only targeting iPhone for my App (I don't want to make a universal app with scaling views). However, I support the 3.2 SDK so I still

iOS simulator can't access any URL and shows the error “This connection is not private”

删除回忆录丶 提交于 2019-12-08 00:36:55
问题 I've encountered a problem where my iPhone Simulator can't access any of the websites on SAFARI. I am also unable to call any API from my application. The error shown by SAFARI is either of the two mentioned below: " This connection is not private " Refer Screenshot OR " Safari cannot open the page because it could not establish a secure connection to the server " Refer Screenshot I have done some research on this issue and have come across a few different solutions. But all of them suggest

while i try to run in iOS 6 my code throws Sen test Framework error. why?

我与影子孤独终老i 提交于 2019-12-07 23:59:56
问题 I have a project that is developed in iOS 5.0 and now i need to update my project to iOS 6.0 . While doing this my xcode 4.5 throws the error as below... dyld: Library not loaded: @rpath/SenTestingKit.framework/Versions/A/SenTestingKit Referenced from: /Users/developer/Library/Application Support/iPhone Simulator/6.0/Applications/6EFF12B6-DA80-4DD8-B3CF-B217C5EA63DF/XxxxXxxx.app/xxxxXxxxXxx Reason: image not found still it runs and works perfectly in iOS 5 devices and i am trying to run this

Incorrect UIView bounds/drawing in the Simulator

懵懂的女人 提交于 2019-12-07 22:09:10
问题 I've created a single-view test app and added a UIButton and UIView to the UIViewController in the main storyboard. I have resized both the button an view to have the same size. In my VC's -viewDidAppear:animated method I dump the frame and bounds of the button and view: - (void)viewDidAppear:(BOOL)animated { NSLog(@"button bounds: %@", NSStringFromCGRect(self.theButton.bounds)); NSLog(@"button frame: %@", NSStringFromCGRect(self.theButton.frame)); NSLog(@"view bounds: %@", NSStringFromCGRect

Open Google+ Application in Xcode 4.5

雨燕双飞 提交于 2019-12-07 20:51:54
问题 I making a social application which requires Google+. I know that I can open Google+ as a link to Safari (Which isn't really user Friendly having to switch apps just to post something). This code opens the link to Safari: -(IBAction)Google+:(id)sender { NSLog(@"Google+"); //The link will go to Stack Overflow Google+ Page NSURL *GooglePlus = [NSURL URLWithString:@"https://plus.google.com/+StackExchange/posts"]; [[UIApplication sharedApplication] openURL:GooglePlus]; } But is there a way to