--
You received this message because you are subscribed to the Google Groups "Frank" group.
To unsubscribe from this group and stop receiving emails from it, send an email to frank-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
If I do the following:
$ cd ~ /Library/Developer/Xcode/DerivedData/TI-Nspire-<FOO>/Build/Products/Debug-iphoneos
$ fruitstrap -v install --bundle=<MyAppName>.app
Then I get:
… lots of detail …
[ 50%] TakingInstallLock
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 65%] PreflightingApplication
[ 70%] VerifyingApplication
[ 70%] InstallingEmbeddedProfile
[ 75%] CreatingContainer
[ 80%] InstallingApplication
[ 85%] PostflightingApplication
[ 90%] SandboxingApplication
[ 95%] GeneratingApplicationMap
[100%] Installed package <MyAppName>.app
The attached iPad has my company’s provisioning profiles on it that permits me to install developer builds.
Can you build your Frankified app directly in Xcode and have Xcode install and run it correctly on your attached iPad? If so, then fruitstrap should be able to install the same Frankified app from the .app file.
Cheers,
Martin
BTW: I’m not sure what numeric version “Mountain Lion” is, but I run OS X 10.7.5 and Xcode 4.5.2.
Thank you Martin,
My fruitstrap in in /usr/local/bin/fruitstrap, and /usr/local/bin is in my path. Wherever you put it, fruitstrap should be in a folder that is in your path, that way you don’t have to be in ITS folder when you run it. It’s much simpler to be in the folder where the .app file is, so you don’t have to specify such a long path as an arg to fruitstrap.
I have an Xcode target configured to build a specific target app for my “Frankified app”. It has “Frank” appended at the end of its name, before the .app suffix. That way I know for sure that I’m installing the “Frankified app” via fruitstrap.
Hope all this helps!
Cheers,
Martin
From: frank-...@googlegroups.com [mailto:frank-...@googlegroups.com]
On Behalf Of Kyle Kendall
Sent: Tuesday, May 14, 2013 1:04 PM
To: frank-...@googlegroups.com
Subject: Re: [Frank] Launching app using fruitstrap
Thank you Martin,
--
How do you create and run it at all, if not via Xcode? What do you do now?
From: frank-...@googlegroups.com [mailto:frank-...@googlegroups.com]
On Behalf Of Kyle Kendall
Sent: Tuesday, May 14, 2013 2:57 PM
To: frank-...@googlegroups.com
Subject: Re: [Frank] Launching app using fruitstrap
Okay, I think if I am able to run my Frankified.app build through Xcode that that will solve my problems. I am confused on how you made that possible. Would you be able to help me on that? I am not very familiar with how to make targets.
Thanks!
--
It may be the norm, but I don’t do “the norm” ‘cause I don’t use Cucumber or Ruby.
What I did was to open my app’s project in Xcode, copied each of 2 targets (one for each of the 2 “flavours” of our app), then added the stuff to those targets that is necessary to “frankify” them (basically all the .a files, plus some code that I added to respond to various app_exec calls. I also renamed the artifacts produced by those targets so that they had “Frank” as a suffix to the normal name. I then select one of those Frank targets in Xcode and click the arrow button that does a build/install/launch.
You’ll have to dig into the “frank” script and find out what “frank build” does, then try to reproduce that in Xcode.
Cheers,
Martin
Don’t know, don’t know if I have one, don’t know where to find it if I do have one.
From: frank-...@googlegroups.com [mailto:frank-...@googlegroups.com]
On Behalf Of Kyle Kendall
Sent: Tuesday, May 14, 2013 4:54 PM
To: frank-...@googlegroups.com
Subject: Re: [Frank] Launching app using fruitstrap
What does your env.rb file look like?
--
Python and Robot Framework. Once I’ve finished my current re-integration of this with the latest Frank I hope to get my employer’s permission to release it as Open Source so that others can use Frank with Robot Framework.
Cheers,
Martin
From: frank-...@googlegroups.com [mailto:frank-...@googlegroups.com]
On Behalf Of Kyle Kendall
Sent: Tuesday, May 14, 2013 4:56 PM
To: frank-...@googlegroups.com
Subject: Re: [Frank] Launching app using fruitstrap
And I just curious, what language do you use to run your tests?
--
--
You received this message because you are subscribed to a topic in the Google Groups "Frank" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/frank-discuss/15AiqHonBB0/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to frank-discus...@googlegroups.com.
I checked the codesigning on my Frankified.app like this:
codesign -dvvv ./Frankified.app/
And saw that it was not signed. So I code signed the Frankified.app build like this:
codesign -v --sign "iPhone Distribution: Joe Developer" /path/to/app
But I still get this:
AMDeviceInstallApplication failed: -402620391
This is a different error code than what I've been getting, but I haven't found any info on this after some searching.
Thanks for the help.
--
codesign -v --sign "iPhone Distribution: Joe Developer" /path/to/app
require 'frank-cucumber'
APP_BUNDLE_PATH= ENV['APP_BUNDLE_PATH'] || "/Users/<user_name>/Documents/Workspace/Frank-Fruitstrap/Frank/frankified_build/Frank-Fruitstrap.app"
Frank::Cucumber::FrankHelper.use_shelley_from_now_on
$USING_PHYSICAL_DEVICE = !!ENV['USE_PHYSICAL_DEVICE']
if $USING_PHYSICAL_DEVICE
Frank::Cucumber::FrankHelper.test_on_physical_device_via_bonjour
After do
step 'I ask the app to reset to home'
end
end
if !$USING_PHYSICAL_DEVICE && !ENV['DONT_INITIALLY_LAUNCH']
# ensure app is initially launched
launcher = Object.new.extend(Frank::Cucumber::FrankHelper).extend(Frank::Cucumber::Launcher)
launcher.launch_app APP_BUNDLE_PATH
end
When I run cucumber from Frank the simulator gets launched and then the app gets launched. It sits there for a second and then I get a whole bunch of "PING FAILED!!!.." the this:
PING FAILED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Encountered 1 timeouts while launching the app.
178:221: execution error: System Events got an error: Can’t get window 1 of process "iPhone Simulator". Invalid index. (-1719)
Then it repeats itself.
Do I need to adjust any other settings to have it run on the device?
Sorry, can’t help you with the Cucumber part. But a good first check is: Can you talk to your running Frankified app on the physical device using Symbiote from a Web Browser? If you’re working on a Mac, it seems that Safari does the best job of rendering Symbiote. On a PC, Chrome is the browser of choice.
To use Symbiote with your iPad, you’ll need to find out the iPad’s IP address on your WiFi network and use that in the URL, like this:
If your iPad has a name that your DNS recognizes, then you could use that in place of the IP address in the Symbiote URL. Here at TI we’ve worked with our IT department to allocate static IP addresses and DNS names for all our Test Automation iPads. The resulting URL that I use for Symbiote to one of my iPads is:
Cheers,
Martin
From: frank-...@googlegroups.com [mailto:frank-...@googlegroups.com]
On Behalf Of Kyle Kendall
Sent: Wednesday, May 22, 2013 11:41 AM
To: frank-...@googlegroups.com
Subject: Re: [Frank] Launching app using fruitstrap
And thank you Pete, Ondrej and Martin as well!
--
I ask the app to reset to home
xcodebuild -target Frank-Fruitstrap -xcconfig ./Frank/frankify.xcconfig -arch armv7 -configuration Debug -sdk iphoneos DEPLOYMENT_LOCATION=YES DSTROOT="~/Documents/Workspace/Frank-Fruitstrap/Frank/frankified_build/" binaries="armv7" FRANK_LIBRARY_SEARCH_PATHS="~/Documents/Workspace/Frank-Fruitstrap/Frank" clean build CODE_SIGN_IDENTITY="iPhone Developer: Kyle Kendall"
Hopefully that will work for you as well.
Thanks for the update Levi.