Doooooo…
I updated corona sdk to latest daily build (921)
Now I have no console any more (terminal does not react, no print nothing)
I have latest textmate2 and coronasdk bundle (that worked fine before the update).
I guess the coronasdk build has trouble with the update.
My terminal says :
"$ /Applications/CoronaSDK/Simulator -project /Users/-- -skin iPhone
-bash: /Applications/CoronaSDK/Simulator: No such file or directory
"
I tried to edit the coronasdk bundle run :
#!/bin/bash
if [[${#SKIN} < 1]] ; then
SKIN=“iPhone”
fi
if [[${#SDK_PATH} > 0]] ; then
CORONA_SIM_PATH=$SDK_PATH"/simulator"
else
CORONA_SIM_PATH="/Applications/CoronaSDK/Simulator"
fi
if [[${#TM_PROJECT_DIRECTORY} > 0]] ; then
TARGET_DIR=$TM_PROJECT_DIRECTORY
else
TARGET_DIR=$TM_DIRECTORY
fi
In order for the simulator relaunch to work, “Enable access for assistive devices” must be selected in System Preferences > Universal Access.
osascript <
on appIsRunning(appName)
tell application “System Events” to (name of processes) contains appName
end appIsRunning
on selectAppMenuItem(app_name, menu_name, menu_item)
try
– bring the target application to the front
tell application app_name
activate
end tell
tell application “System Events”
tell process app_name
tell menu bar 1
tell menu bar item menu_name
tell menu menu_name
click menu item menu_item
end tell
end tell
end tell
end tell
end tell
return true
on error error_message
return false
end try
end selectAppMenuItem
if appIsRunning(“Corona Simulator”) then
selectAppMenuItem(“Corona Simulator”,“File”,“Relaunch”)
else
tell application “Terminal”
do script “$CORONA_SIM_PATH -project $TM_PROJECT_DIRECTORY -skin $SKIN”
end tell
end if
APPLESCRIPT
That build does not work the first time, I have to open corona simulator.
The problem is that the command+R relaunch the simulator, but, no output in the console …
What’s wrong ?
[import]uid: 9328 topic_id: 31254 reply_id: 331254[/import]