xcode - How do I run a Cocoa app after building it from the command line with xcodebuild? -
i'm building mac os x cocoa application command line using xcode project this:
xcodebuild -scheme myapp -configuration debug
how run once it's done building?
i wrote script this:
#!/bin/bash x=$( xcodebuild -showbuildsettings -project myapp.xcodeproj | grep ' build_dir =' | sed -e 's/.*= *//' ) dyld_framework_path=$x/debug dyld_library_path=$x/debug $x/debug/myapp.app/contents/macos/myapp
(i figured out running application xcode , ps -wwe -p
on process see environment variables.)
Comments
Post a Comment