ios-simulator

Xcode server, bots, continuous integration, and unit-testing on the simulator

痞子三分冷 提交于 2019-12-06 20:49:38
问题 I have an Xcode server set up with a few bots for iOS projects (compiled with Xcode 6.1), all of which containing unit test targets I seem unable to have those tests run in the simulator; all tries so far have been failing with the same error (time-out for simulator to boot): Test target NAME_OF_MY_TARGET encountered an error (Timed out waiting 120 seconds for simulator to boot, current state is 1. If you believe this error represents a bug, please attach the log file at [...]) Of course, the

iOS Simulator Reverts Location Setting

[亡魂溺海] 提交于 2019-12-06 20:33:20
问题 I am using a Custom Location under Debug --> Location --> Custom Location While this setting does work just fine for me, the simulator frequently changes my setting from Custom Location to None. This reverting does not appear to have a pattern as I may run the same project 5 or 10 times without the setting reverting. Other times it changes the Location to None every 1 or 2 times I run the simulator. Is there a way to lock the setting in so I do not have to fight with it? 回答1: Have you tried

Unable to run app in simulator

旧巷老猫 提交于 2019-12-06 18:33:32
问题 Today, when I try to run my app in simulator, it simply tells me Unable to run app in Simulator An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 22) And the error dialog looks like this: I've tried many things: Restart Xcode Restart Simulator Reboot Reset content and settings of simulator None of above works. And I looked into log, I found these are those records has something to do with this issue 2014/10/15 9:09:40.964 com.apple.CoreSimulator.CoreSimulatorService

Multiple projects using the simulator

拥有回忆 提交于 2019-12-06 16:11:33
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 in the simulator? There is a little bit of doing involved in making this happen but overall it's pretty

Why small black bars at top and bottom sides in (6,6s,6plus simulators)when i load Launcher screen

妖精的绣舞 提交于 2019-12-06 16:03:08
Hi i am very new for ios and in my app i am loading Launcher screens they are(Default-568h@2x,Default,Default@2x) ok that's fine When i run my app 4,5,5s simulators screen is fitting perfectly see my 5s simulator screen But when i load my app in 6,6s,6plus simulators small little bit gap coming at top and bottom side see my below 6 simulator screen what is the problem is it sumulator problem or any other problem please guide me 5 simulator screen:- 6 simulator screen:- This is because your app is not optimised for larger iPhone screens. You will notice that is not just the black lines at the

How to set iOS Simulator Language when launching via simctl

南楼画角 提交于 2019-12-06 15:51:21
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). Just figured this out myself: xcrun simctl launch <deviceid> <appid> -AppleLanguages "(en-GB)" or xcrun simctl launch <deviceid> <appid> -AppleLanguages \(en-GB\) When you use the -AppleLanguages as a launch argument in the scheme, it expects the

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

笑着哭i 提交于 2019-12-06 15:28:44
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. Seriously!): ARCH=i386 PLATFORM=/Developer/Platforms/iPhoneSimulator.platform/Developer GCC=$(PLATFORM)/usr

iPhone : run .app to iPhone Simulator

独自空忆成欢 提交于 2019-12-06 15:20:23
问题 I got a .app folder from a developer friend. I would try his application and run .app to my iPhone Simulator, without XCode. Is there a way to run this .app to my iPhone Simulator ? Of course this .app has been built for iPhone Simulator target. 回答1: Try something like this: /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication path_to_your_app/YourFavouriteApp.app/YourFavouriteApp 来源: https:/

Alternative of Unity & SIO2

一个人想着一个人 提交于 2019-12-06 13:28:00
问题 I am searching for open source free API just like Unity or SIO2 which I can use for commercial purpose. Kindly tell me if there is any API for iPhone 3D games. 回答1: AFAIK there are two open source game engines: irrlicht oolongengine I don't know much about irrlicht, but there are some dicussions about it here on stackoverflow.com. I think they support iPhone development for quite a while. oolong seems to have a hard learning curve because there is not much documentation and you have to

UITextView setBorderStyle crashes in iOS 5 Simulator

一曲冷凌霜 提交于 2019-12-06 12:46:32
I have a strange situation in one view controller where this line crashes in the iOS 5 simulator: // myTextField is created in a NIB myTextField.borderStyle = UITextBorderStyleNone; It's okay in the device (and both device and simulator on iOS 4.3). I've checked the connections in the NIB (even deleted and reconnected). myTextField has a retainCount of 2 at this point in the code. I'm setting other attributes (e.g., "text" and "userInteractionEnabled" prior to this point, and those do not cause a crash. However, if I use this sequence, it does not crash: myTextField.borderStyle = 4; // not a