Is it possible to run an OS X command from an iOS app running in the simulator?
This is only for testing and debugging, clearly it wouldn't go in a finished app!
I've tried using Process.Start("/usr/bin/grep"), but the simulator just logs:
dyld: program was built for Mac OS X and cannot be run in simulator
Playing around with ProcessStartInfo options has also brought no joy, and I can't think of anything else.
Related
Monterey 12.6.1
Xcode :Version 14.1 (14B47b)
I am getting a compilation error even though I follow the instructions in the "README.md" file.
Open Client.xcodeproj in Xcode.
Build the Fennec scheme in Xcode.
I can't pass these steps.
https://github.com/mozilla-mobile/firefox-ios
I want to run firefox application on Mac OS simulator. can you help.
Error Message
I wanted to run firefox application in ios simulator. I got a compile error.
When I build and run any project on Xcode, I face this error:
On the other hand, when I using command-line and install and launch the app by commands, I can see logs and everything is ok.
I did see other similar questions and I did try solutions like the clean project, build and reset and restart simulator and reinstall various versions of Xcode, but didn't fix.
My OS:
Mac Os Catalina 10.15.4
I removed some additional kexts from EFI partition, this problem solved!.
Thanks to Jeremy Huddleston Sequoia
Is it possible to install Xcode from the command line (on iOS)? I need it to create Appium tests, and because Appium is a booger to install, I'm trying to automate as much of the set-up as possible.
For me its a little bit hard to get your intention.
Do you want to install the Mac Xcode on an iOS device? No this is not possible?
-> no you cannot install the Xcode for Mac on iOS
Do you want to use an Terminal app on your iOS device to install Xcode for Mac on your Mac?
-> You can use MAS and SSH into your Mac from your iOS device and execute the command.
Code which was working fine in xcode 6.1.1 now fails to launch the iOS 7.1 simulator in xcode 6.2 (but works fine for the iOS 8.2 sim).
Here is the command I am using:
instruments -t Automation -w /Users/USER/Library/Developer/CoreSimulator/Devices/233D1DE0-8660-4D98-8E45-5E0794CF7366 /Users/USER/Library/Developer/CoreSimulator/Devices/233D1DE0-8660-4D98-8E45-5E0794CF7366/data/Applications/APPNAME/APPNAME.app -v -l 20
This is the error returned:
instruments[2274:66214] -[UIAInstrument(UIAInstrument_Simulator) _startAgentForApp:withPID:]: Warning: Automation instrument could not locate sim tool.
That command launches the simulator and briefly shows the app's splash screen, then dumps out.
Any ideas?
You may go to xCode -> Preference -> downloads and see in iOS Simulator 7.1 is downloaded or not, if it is not downloaded then download and install it, it might work for you
What would cause the Mac installer command to hang when installing an app from a shell script? The last output the installer gets to is "Preparing Target Volume". This behavior is observed on 10.5 and 10.6 but not 10.4.
You can use Activity Monitor to take a Sample (stack trace) or a hung process and see where it's stuck.
I've been getting this hanging behavior on my installs. Quitting the iphone simulator fixes mine.