192 questions
28
votes
1
answer
59k
views
How to use web camera in android emulator to capture a live image?
As far as i know, Android emulator doesn't have a camera. To capture a live image we have to use the web camera. I have seen code in this web site to use the web camera in the android emulator to ...
144
votes
12
answers
63k
views
How to resize the iPhone/iPad Simulator?
The iPad-simulator is really small (like one third the size of the real iPad screen) on my 23" Full-HD screen (and also on the 15" MacBook Pro).
Is there a way to resize it?
I know it must maintain ...
100
votes
19
answers
61k
views
How can I reset the iOS Simulator from the command line?
I need to reset the iPhone Simulator a lot, and haven't found a way to do it without using the mouse. It's a small thing, but I'm really sick of doing it and would love to have a way to do this using ...
1
vote
1
answer
3k
views
Why isn't my assembly program setting r1 to the correct value?
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 ...
123
votes
7
answers
59k
views
Xcode6: Run two instances of the simulator
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 ...
116
votes
16
answers
182k
views
Download Xcode simulator directly
I have downloaded Xcode 6.2 today which replaced previous Xcode 6.1
now to use simulator 7.1 & 8.1 it asks to download both simulators , but for some reason after trying 4-5 times it shows network ...
21
votes
13
answers
52k
views
Could not load NIB in bundle: 'NSBundle'
What is the error listed below?
2011-02-23 21:24:12.218 Success[7238:207] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: '...
217
votes
13
answers
128k
views
ios simulator: how to close an app
When you "run" the simulator from xCode, the app automatically launches, and then you can click the home button to suspend the app. What I want to do is close the app from within the simulator. So, ...
66
votes
9
answers
9k
views
Xcode 6.4 showing duplicate 'Simulators' with Unique Id
Till yesterday, everything was normal with Xcode. It was showing simulators as :
But today, when I opened it, simulator list changed to :
Every simulator can be seen twice, name followed by a unique ...
20
votes
5
answers
5k
views
Changing iPad/iPhone simulator resolution for Xcode 4.3.2 [duplicate]
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 ...
10
votes
5
answers
47k
views
Xcode 4.2 SIGABRT Error
Everytime I run my app on the iPad simulator, it works flawlessly. But, when I run it on the iPhone simulator, when I click the home button, I get an error in Xcode in my main.m file, saying "Thread 1:...
143
votes
3
answers
199k
views
Can I install the "app store" in an IOS simulator?
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?
43
votes
13
answers
31k
views
CLLocationManager on iPhone Simulator fails with kCLErrorDomain Code=0
CLLocationManager on iPhone Simulator is supposed to fake Cupertino (isn't it?) but it does NOT, it fails with kCLErrorDomain Code=0 instead. LocationManager's delegate receives the message ...
33
votes
10
answers
33k
views
Setting Xcode's target to iPhone NOT iPad
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 ...
7
votes
3
answers
22k
views
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 error [duplicate]
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 ...
4
votes
1
answer
7k
views
Can you install an Android Device Simulator in xcode when using Apportable
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 ...
42
votes
8
answers
16k
views
Change the Location of Screen Shots Saved by the iOS Simulator
I'd like to change the location that screenshots created via File > Save Screen Shot in the iOS Simulator are saved from the desktop to a folder of my choice. How can this be done? Perhaps there's a ...
15
votes
4
answers
7k
views
How do you deploy an iPhone app to the simulator from the command line?
I'm using xcodebuild from the command line to compile several variations of an iPhone app but I've not been able to figure out how to deploy those builds into the iPhone Simulator from the command ...
8
votes
6
answers
10k
views
All framework error when launch framework/Info.plist: No such file or directory
I have a project on react native,
I'm Stack all day with this error I try a lot of things but nothing works, build successfully but the application is not launched on device or simulator here is the ...
5
votes
3
answers
23k
views
Using clock() to measure execution time
I am running a C program using GCC and a proprietary DSP cross-compiler to simulate some functioality. I am using the following code to measure the execution time of particular part of my program:
...
2
votes
1
answer
168
views
Why do I get a different behviour in Codename One simulator than on a real Android device?
I am trying to figure out why I get a different behaviour in the simulator (iPhone, Nexus, Nexus5, ... skins ) VS on an Android real device with the following code (my goal is to draw a text over a ...
0
votes
1
answer
380
views
Flutter simulator error: Command PhaseScriptExecution failed with a nonzero exit code
I have created a new flutter project on Android studio. When I try to run it on emulator it gives this error:
PhaseScriptExecution failed with a nonzero exit code
When I check the "For install ...
36
votes
13
answers
24k
views
Application launch did not return a valid pid nor a launch error
My app installs fine on the simulator and I can attach the process after opening it manually but it won't run from the debug play button without throwing the error below.
I've tried all the tricks I ...
24
votes
5
answers
53k
views
Install app on genymotion device ,meet:“INSTALL_FAILED_CPU_ABI_INCOMPATIBLE”
When I install my app on a genymotion simulater device,it can not be installed well,on console I got "INSTALL_FAILED_CPU_ABI_INCOMPATIBLE"
I trid another app,it installed fine.I do not know why.
20
votes
3
answers
14k
views
How to get the original size of screenshots using iOS Simulator in Xcode 7 when scaling down
In Xcode 7.1 Simulator, when using ⌘+s to save screenshot to desktop, it saves the actual size of the simulator. For example, iPhone 6 Plus 100% scale simulator save screenshots as 1242 x 2208; 25% ...