I am trying to find a way to automatize the running of some tests on iOS.
Is there any way I can start an app on the device without the use of Xcode (by using a script, for example)?
I found the tool below which does exactely what I need:
https://github.com/ghughes/fruitstrap
This answer does not solve your problem right away: But you might want to look at how RubyMotion solves this problem. It compiles files from the command line, installs them in the simulator, and also installs apps on the device.
I couldn't figure how it works, but maybe you can.
Take a look on my blog...
fruitstrap is based on gdb-arm-apple-darwin (not used anymore on xcode 5).
Install:
xcode 5 use debugserver so you need to use: ideviceinstaller.
Run app: idevice-app-runner
Related
I'm writing a test that is supposed to test uploading a video file, using XCUITest in XCode 12. The test is supposed to be self-contained so I'm not certain how to exactly do this.
Typically I want the flow to work like this:
App builds
File is copied from the code folder (I've moved the video to be in the code) into the simulator
Tests run
However step 2 is giving me a ton of problems. I'm trying using this in a build phase:
xcrun simctl addmedia booted ~/code/resources/Video.mov
Bur it's currently giving a completely unspecified error. I'm not sure if this is because I'm trying to do it before the simulator is "booted" or if something else is going on. Does anyone have a solution?
I figured it out. The correct way to do this was to just use a . instead of ~ and then realize that:
. puts you at the project level (.xcproj)
while not being able to make a proper build on iOS of a Cordova app, I started to view the system.log on mac, what I found out is that during the build and while I run the project on Xcode I get the following error which I have never seen before and do not event know what its all about.
What I get after this build is just a white page.
Do you have any idea on what this is or how to troubleshoot in this case?
What is interface Builder Cocoa Touch Tool?
What is IBCocoaTouchImageCatalogTool? Where do they come from?
I already searched on stackoverflow but could not find a proper solution for my issue.
I am only running the app on simulator not on a device.
Any help would be greatly appreciated!
EDIT: Actually, as Jeremy mentioned below, this is not a problem.
But my guesses are that maybe the Xcode version is the culprit, this application was developed in Xcode 6.0, but I am trying to run it with Xcode 9, may this be a compatibility issue between versions?
Thank you!
Interface Builder Cocoa Touch Tool is the tool that is run by Xcode to produce compiled nibs from your xibs.
IBCocoaTouchImageCatalogTool is the tool that is run by Xcode to produce your asset catalogs.
Those messages are benign and just result from the way those tools are run (without a bootstrap port).
Lately I've started to take up a course for learning swift to devolp iOS OS X and Watch OS apps. I'm taking this course on udacity. The first step is to download a project and put it in a folder on your desktop. I had to open the app and then run it, which should've worked. But not for me somehow. I hit run and the following error showed up (this is the complete error log):
Some poeple suggested that I should update my XCode but I already have. I currently have XCode 7.3! I'm quite new to this platform, that's also why I'm doing this course, so I don't really know what I have to do. Can someone please tell me what's going on here?
This is the result of a corrupted swift class. If you encounter a class looking similar to the following code:
Ôæ≠fiÔæ≠fiqcaJÔæ≠fihJ0ç硡ˇ2ç硡ˇ$5y$ġˇˇ% 7.ġˇˇÔæ≠fiÔæ≠fiP‚—ġˇˇfl‚ġˇˇ ˗ġˇˇ∞B‚ġˇˇÄ+€
Try to re-create the class or re-download it. This solved my problem and to me, it would look like the only solution possible for a corrupted class.
Delete derived data.
Windows->Projects->select your project and delete derived data
This worked for me for couple of projects which i downloaded from internet.
I do everything restarts Xcode, rebuild Project, adding toolChains lock unlock them,
so there are two possibilities
first, maybe you install the beta version of Xcode
or try this, this work for me->
I tried to run a project in Xcode12/Swift4, while the project was written on Xcode8/Swift3
so I install Xcode version 11.7 and run this work for me.
if you not done with 11.7 then install another version of Xcode and try the appreciated version
May this help you
I want to make plugin for Xcode6 but i don't know how to start and make that.Any one please share any link that explains this in detail for Xcode 6? I find for Xcode 4 but that method is not working for xcode6
I am the creator of IntelliPaste for Xcode.
Plugin development for Xcode is fun but will also be hard at times. There is no documentation that can be found, at least not from Apple. A lot is guess work and look at how other people's plugins are made.
To get started, I would recommend using this template. I haven't used it myself but I wished something like that was around when I got started.
I added DDMathParser as a submodule in my Git repository, and after running it, the code only seems to work with OS X. Right away it gives me the following error in DemoController.h, etc.:
'Cocoa/Cocoa.h' file not found
Can DDMathParser work with a mobile device using iOS7? If so, it isn't clear to me how to accomplish this. My google search online suggests that Cocoa is not possible with iOS. I was able to get it working with Mac OS X - how can I do the same for iOS with my app?
DDMathParser author here. You've copied over more than you need. As the name implies, DemoController is part of a demo showing how the parser works. You shouldn't be including it in your app.
It definitely works with iOS 7. I copied it into my Xcode project folder and it parses like a champ. Can you try that first, then work on Git?