Skip to content

Instantly share code, notes, and snippets.

View timrisi's full-sized avatar

Timothy Risi timrisi

  • KickBack Reward Systems
  • Anchorage, AK
View GitHub Profile
@timrisi
timrisi / gist:5978899
Created July 11, 2013 20:23
PCL Build error
Building: NewPCL (Debug)
---------------------- Done ----------------------
Build failed. MSBuild operation failed
Build: 1 error, 0 warnings
@timrisi
timrisi / gist:6135761
Created August 1, 2013 22:02
AVFoundation
//Xamarin Code
NSUrl url = new NSUrl (NSBundle.MainBundle.PathForResource ("IMG_1254", "MOV"), false);
AVUrlAsset asset = new AVUrlAsset (url, new AVUrlAssetOptions ());
NSError error;
AVAssetReader assetReader = new AVAssetReader (asset, out error);
AVAssetTrack videoTrack = asset.Tracks [0];
NSString key = CVPixelBuffer.PixelFormatTypeKey;
NSString value = new NSString (CVPixelFormatType.CV32BGRA.ToString ());
NSDictionary videoSettings = NSDictionary.FromObjectAndKey (value, key);
Mono.IOS.VisualStudio.MonoTouchPackage Error: 0 : [2013-11-08 08:51:55.6] Build server returned an Error.
Mono.IOS.VisualStudio.MonoTouchPackage Error: 0 : [2013-11-08 08:51:55.7] Installation failed: Package Inspection Failed Error (error: 0xe8000051)
error MT1006: Could not install the application '/Users/Tim/Library/Caches/Xamarin/mtbs/builds/MyCompanyVisitorsClientiOS/e473ab4e-2896-4637-b81e-4078483e3885/output/Debug/iPhone/MyCompanyVisitorsClientiOS.app' on the device 'Mark’s iPad': Package Inspection Failed Error (error: 0xe8000051).
Mono.IOS.VisualStudio.MonoTouchPackage Error: 0 : [2013-11-08 08:51:55.7] Xamarin.iOS encountered the following error(s):
System.Exception: Application deployment failed (Generic)
Server command 'Deploy': failed to deploy application to device
Server failure while processing the command. See below for details
Response status: Error
[12-Nov-2013 13:22:54] Command [Info: CommmandUrl=Info] finished (10)
[12-Nov-2013 13:22:54] Handling with command: [Login: CommmandUrl=Login] (11)
[12-Nov-2013 13:22:54] Attempting to acquire command execution lock, timeout set to 00:10:00
[12-Nov-2013 13:22:54] Login process initiated, returning UUID for pairing.
[12-Nov-2013 13:22:54] Command [Login: CommmandUrl=Login] finished (11)
[12-Nov-2013 13:22:54] Handling with command: [Login: CommmandUrl=Login] (11)
[12-Nov-2013 13:22:54] Attempting to acquire command execution lock, timeout set to 00:10:00
[12-Nov-2013 13:22:54] Command [Login: CommmandUrl=Login] finished (11)
[12-Nov-2013 13:22:55] Handling with command: [ListDevices: CommmandUrl=ListDevices] (11)
[12-Nov-2013 13:22:55] Attempting to acquire command execution lock, timeout set to 00:10:00
### Starting on Simulator App: com.yourcompany.tictactoe ###
Calabash::Cucumber::Launcher::StartError: Time out waiting for UIAutomation run-loop to Start.
Logfile /var/folders/gl/58gw59dn2339b3ncypxv0g3h0000gn/T/run_loop20131115-20624-1myxvcc/run_loop.out
Instruments Usage Error : Unknown hardware device specified.
(Calabash::Cucumber::Launcher::StartError)
/Users/Tim/.rvm/gems/ruby-2.0.0-p247/gems/calabash-cucumber-0.9.158/lib/calabash-cucumber/launcher.rb:226:in `new_run_loop'
/Users/Tim/.rvm/gems/ruby-2.0.0-p247/gems/calabash-cucumber-0.9.158/lib/calabash-cucumber/launcher.rb:155:in `relaunch'
/Users/Tim/Projects/Xamarin/monotouch-samples/TicTacToe/TicTacToe/features/support/01_launch.rb:29:in `Before'
### Starting on simulator App: /Users/Tim/Projects/Xamarin/monotouch-samples/MonoCatalog-MonoDevelop/bin/iPhoneSimulator/Debug/monocatalog.app ###
2014-01-21 15:26:21 -0900 instruments -D "/var/folders/d5/0m2657ws4b339b0ryh0brkhw0000gn/T/run_loop20140121-92292-bk4s79/trace" -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate "/Users/Tim/Projects/Xamarin/monotouch-samples/MonoCatalog-MonoDevelop/bin/iPhoneSimulator/Debug/monocatalog.app" -e UIARESULTSPATH /var/folders/d5/0m2657ws4b339b0ryh0brkhw0000gn/T/run_loop20140121-92292-bk4s79 -e UIASCRIPT /var/folders/d5/0m2657ws4b339b0ryh0brkhw0000gn/T/run_loop20140121-92292-bk4s79/_run_loop.js &> /var/folders/d5/0m2657ws4b339b0ryh0brkhw0000gn/T/run_loop20140121-92292-bk4s79/run_loop.out
Launching took 4.434895 seconds
Sending UIA command
uia.tapOffset('{:x 150, :y 129.75}')
Result
{"status"=>"success", "value"=>":nil", "index"=>0}
Given I am on the "Address Book"
irb(main):001:0> start_test_server_in_background
{:launch_method=>:instruments, :reset=>false, :bundle_id=>"com.xamarin.monocatalog1", :device=>"com.xamarin.monocatalog1", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :udid=>"5496777b376c93c67472f6d93759b183636a17a0", :device_target=>"5496777b376c93c67472f6d93759b183636a17a0", :app=>"com.xamarin.monocatalog1", :script=>"/Users/Tim/.rvm/gems/ruby-2.1.0/gems/run_loop-0.1.1/scripts/run_loop_fast_uia.js"}
device_target=5496777b376c93c67472f6d93759b183636a17a0
udid=5496777b376c93c67472f6d93759b183636a17a0
bundle_dir_or_bundle_id=com.xamarin.monocatalog1
script=/var/folders/d5/0m2657ws4b339b0ryh0brkhw0000gn/T/run_loop20140124-17547-fhs8b7/_run_loop.js
log_file=/var/folders/d5/0m2657ws4b339b0ryh0brkhw0000gn/T/run_loop20140124-17547-fhs8b7/run_loop.out
timeout=30
args=[]
Preparation took 0.020451 seconds
Project Type
- iOS
- Platform
- iPhone
- iPad
- Universal
- SDK Version
- 6.0
- 6.1
- 7.0
hackintosh:CircleLayout Tim$ DEVICE_TARGET=5496777b376c93c67472f6d93759b183636a17a0 DEVICE_ENDPOINT=http://192.168.1.13:37265 DEBUG=1 calabash-ios console
Running irb...
irb(main):001:0> start_test_server_in_background
{:launch_method=>:instruments, :reset=>false, :bundle_id=>"com.xamarin.circlelayout", :device=>"iphone", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :udid=>"5496777b376c93c67472f6d93759b183636a17a0", :device_target=>"5496777b376c93c67472f6d93759b183636a17a0", :app=>"/Users/Tim/Projects/Xamarin/monotouch-samples/CircleLayout/bin/iPhone/Debug/CircleLayout.app", :script=>"/Library/Ruby/Gems/2.0.0/gems/run_loop-0.1.5/scripts/run_loop_fast_uia.js"}
device_target=5496777b376c93c67472f6d93759b183636a17a0
udid=5496777b376c93c67472f6d93759b183636a17a0
bundle_dir_or_bundle_id=com.xamarin.circlelayout
script=/var/folders/0m/9tj0bgkx7_73t7ydm99sttwc0000gn/T/run_loop20140307-24041-1s00lz/_run_loop.js
log_file=/var/folders/0m/9tj0bgkx7_73t7ydm99sttwc0000gn/T/run_loop20140307-24041-1s00lz/run_loop.
Mar 7 16:51:48 Tims-iPhone DTMobileIS[678] <Notice>: MS:Notice: Injecting: (null) [DTMobileIS] (847.21)
Mar 7 16:51:48 Tims-iPhone DTMobileIS[678] <Warning>: Could not create service named com.apple.instruments.server.services.launchdaemon
Mar 7 16:51:48 Tims-iPhone DTMobileIS[678] <Warning>: Could not create service named com.apple.instruments.server.services.filebrowser
Mar 7 16:51:48 Tims-iPhone DTMobileIS[678] <Warning>: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
Mar 7 16:51:49 Tims-iPhone kernel[0] <Debug>: launchd[680] Container: /private/var/mobile/Applications/46DBC795-E242-400C-BBA5-AA21299D2650 (sandbox)
Mar 7 16:51:49 Tims-iPhone networkd[150] <Warning>: Analytics Engine: double ON for app: com.xamarin.circlelayout
Mar 7 16:51:49 Tims-iPhone CircleLayout[680] <Notice>: MS:Notice: Injecting: com.xamarin.circlelayout [CircleLayout] (847.21)
Mar 7 16:51:49 Tims-iPhone CircleLayout[680] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/Dy