Create iPhone Simulator from TextMate

I have an Xcode package for TextMate, and Build and Run with Xcode work fine, but is there a way to pass Active Target, Active SDK or configuration to the assembly to run the simulator?

I tried installing vars shells in the prefs panel, but no luck.

Thanks.

+3
source share
1 answer

Found at http://hexperimental.com/content/coding-iphone-apps-textmate

I have not tested this myself, but this guy suggests installing TextMate as your select editor in xcode, and then changing the launch shortcut to use applescript to send keyboard shortcuts

Bundle (Bundles > Bundle Editor > Show Bundle editor), xcode , Run :

osascript -e 'tell application "Xcode"
activate
end tell

tell application "System Events"
key code 15 using {command down, shift down}
key code 15 using {command down}
end tell'

#I'm leaving the old command commented below just in case. 
#PROJECT=$(ruby -- "${TM_BUNDLE_SUPPORT}/bin/find_xcode_project.rb")
#if [[ -f "${PROJECT}/project.pbxproj" ]]; then
#   "${TM_BUNDLE_SUPPORT}/bin/run_xcode_target.rb" -project_dir="$PROJECT"
#else
#   echo "Didn't find an Xcode project file."
#   echo "You may want to set TM_XCODE_PROJECT."
#fi
+2

Source: https://habr.com/ru/post/1718371/


All Articles