simulator

Xcode6: Run two instances of the simulator

两盒软妹~` 提交于 2019-11-27 05:52:24
I have two different targets for my iOS app. Is it possible to run simultaneously the two apps on two different instances of the simulator? It's ok if it would require not to benefit of the Xcode's debugger. So far the only solution I found was to install two versions of XCode, but that's a very heavy/space-consuming solution. i40west You can run two instances of the iOS simulator from the command line. They won’t be attached to Xcode debugging—indeed, it seems only to work if you do it without Xcode running at all. First, you need to run the app in the simulator from Xcode, in order to get it

Setting Xcode's target to iPhone NOT iPad

喜你入骨 提交于 2019-11-27 03:43:33
问题 I just upgraded to iPhone SDK 3.2 Beta 4. Since doing so, I have not been able to get the app to launch in the iPhone simulator - it keeps launching in the iPad simulator. I have tried option-clicking the drop-down menu in the top left-corner of Xcode and setting 'Active Executable' to iPhone simulator 3.1.3 but it keeps going back to iPad simulator instead. What gives? I have no interest in my app running on the iPad and I don't want to test it in the 2X mode in the simulator. Thanks, 回答1:

Can you install an Android Device Simulator in xcode when using Apportable

杀马特。学长 韩版系。学妹 提交于 2019-11-27 02:57:59
问题 Can you install an Android Device Simulator in Xcode when using Apportable to convert an iOS app to Android or do I need an Android device to compile and run the project? I dont have an android device and wanted to test this before I go buy one. Thanks 回答1: Note that it is generally much easier to work with an Android device than the emulator, but it is possible to use the emulator: ~/.apportable/SDK/toolchain/macosx/android-sdk/tools/android will launch the android tool which can create AVD

/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 error [duplicate]

社会主义新天地 提交于 2019-11-27 02:53:39
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: gcc-4.2 failed with exit code 1 iphone I am getting the error Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 every time I try to run the program on the iPhone device and the Simulator. I am also seeing this: ld: duplicate symbol .objc_class_name_MainView in /Volumes/Mark's Flash Drive/iFtB/build/iFtB.build/Debug-iphonesimulator/iFtB.build/Objects-normal

Why isn't my assembly program setting r1 to the correct value?

北战南征 提交于 2019-11-27 02:17:20
I am writing an assembly program on the LC3 machine. My assembly program is an LC3 program that multiplies R2 and R3 and stores the result in R1. Here is my source code(with comments) ;Sets pc to this address at start of program .ORIG x3000 ;R1 will store the result lets clear it(ANd with 0) AND R1,R1,x0 ;R2 will be multiplied by R3, let's clear both of them AND R2,R2,x0 AND R3,R3,x0 ;Test case 4 * 3 = 12; ADD R2,R2,4 ADD R3,R3,3 ;Add to increment zone LOOP Add R1,R1,R2; ;Decrement the counter, in this case the 3 or R3 ADD R3,R3,x-1 BrP LOOP HALT .END My test case is multiplying 4 * 3. The

XCode 5.0.1 and iOS 5.1 simulator issue

若如初见. 提交于 2019-11-27 02:02:56
问题 After upgrading XCode to 5.0.1 on Mavericks I can't install iOS 5 simulator, it's removed from Download section... Is it only happening to me or does anyone else has similar issue? Is it possible to install 5.1 simulator from outside of Xcode Downloads page? 回答1: I face the same thing when I installed the XCode4.5. Then I copied the SDK from my old xcode to the new xcode. The SDK is located in the following path. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform

waiting thread until a condition has been occurred

我怕爱的太早我们不能终老 提交于 2019-11-27 01:49:30
问题 I want to wait one thread of 2 thread that executed in a Simultaneous simulator until a condition has been occurred, may be the condition occurred after 1000 or more cycles of running a program in the simulator, after the condition occurred the waited thread executed again, how can I do it? 回答1: You need conditional variables. If your compiler supports std::conditional introduced by C++11, then you can see this for detail: std::condition_variable (C++11 threads) If your compiler doesn't

Can I install the “app store” in an IOS simulator?

本秂侑毒 提交于 2019-11-27 01:26:06
问题 The IOS simulator in my computer doesn't have app store. I want to use the app store to test a program I wrote on my simulator. Is it possible to install the app store in my simulator? 回答1: This is NOT possible The Simulator does not run ARM code, ONLY x86 code. Unless you have the raw source code from Apple, you won't see the App Store on the Simulator. The app you write you will be able to test in the Simulator by running it directly from Xcode even if you don't have a developer account. To

Can't scale device window in iOS Simulator

放肆的年华 提交于 2019-11-26 22:00:21
问题 On the 24" iMac I'm using at work I cannot scale the iOS Simulator's window. The 100% and 50% menu entries are greyed out (and the keyboard shortcuts don't work either.) On my Mac Mini at home, it's fine. I've searched high and low for someone with a similar problem, and can't find anything logged. Any ideas? 回答1: The options will only be there if your screen is not large enough to show the window at 100%. 回答2: Now It's more flexible with Xcode 9+ Simulator. You can pick & drag any corner of

Changing iPad/iPhone simulator resolution for Xcode 4.3.2 [duplicate]

女生的网名这么多〃 提交于 2019-11-26 21:48:23
问题 This question already has an answer here: How to resize the iPhone/iPad Simulator? 11 answers I am working on a Philips 19" and upgraded Xcode to version 4.3.2. On the new "Retina Display" on iPad 3 (oh, sorry, on The New iPad) my iPad simulator changes it's resolution and the simulator has vertical and horizontal scroll bars! How do I change the resolution of the an iOS simulator? 回答1: The following hotkeys should be helpful: Command ⌘ + 1 (100%) Command ⌘ + 2 (75%) Command ⌘ + 3 (50%)