Solar2D Native
Xcode
product build folder
App-Info
ln -s /Applications/Corona-3575/Native
Download plugins
#!/bin/sh BUILDER_PATH="$CORONA_ROOT"/Corona/mac/bin/CoronaBuilder.app/Contents/MacOS/CoronaBuilder "$BUILDER_PATH" plugins download ios "$PROJECT_DIR/../Corona/build.settings" "$PROJECT_DIR/CoronaApp.xcconfig" $CORONA_FORCE_LOAD if [ $? -ne 0 ] then echo "Exiting due to errors (above)" exit -1 fi touch "$SRCROOT/../Corona"
add OneSignal.h to Plugins
”$(PROJECT_DIR)/../external/ios”
#include <OneSignal.h> PluginLibrary::Initialize( CoronaLuaRef listener ) { ... [OneSignal setLocationShared:false]; return result; }
Corona/build.settings
settings = { --[[ orientation = { default = "portrait", supported = { "portrait" } }, --]] plugins = { ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, }, iphone = { xcassets = "Images.xcassets", plist = { UILaunchStoryboardName = "LaunchScreen", UIBackgroundModes = {"remote-notification"}, }, }, }
copy plugin.OneSignal.lua