Skip to content

Commit

Permalink
Explicitly load frameworks
Browse files Browse the repository at this point in the history
This way the user doesn't have to explicitly `import` dependencies in
their script.
  • Loading branch information
neonichu committed Nov 30, 2015
1 parent 427da0d commit d2a0675
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/cato
Expand Up @@ -66,4 +66,6 @@ then
install_dependencies "$SCRIPT"
fi

exec xcrun swift -F"$PKG_DIR/Rome" -F"$FRAMEWORKS_PATH" "$SCRIPT" $@
FRAMEWORKS="`ls "$PKG_DIR/Rome"|sed -e 's/\.framework$//' -e 's/^/-framework /'`"

exec xcrun swift -F"$PKG_DIR/Rome" -F"$FRAMEWORKS_PATH" `echo $FRAMEWORKS` "$SCRIPT" $@

0 comments on commit d2a0675

Please sign in to comment.