NativeScript / ios-jsc

NativeScript for iOS using JavaScriptCore

Home Page:http://docs.nativescript.org/runtimes/ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rebuilding ios-runtime for tvos - CMake Error: Unknown argument -appletvsimulator

thisiseddy-ab opened this issue · comments

Im trying to rebuild ios-runtime like this blog
https://blog.nativescript.org/running-the-nativescript-runtime-for-ios-on-apple-tv/

but im geting error and warnings

CMake Error: Unknown argument -appletvsimulator CMake Error: Run 'cmake --help' for all supported options. Command PhaseScriptExecution failed with a nonzero exit code note: Using new build system note: Planning note: Build preparation complete warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning /Users/edinabdi/Downloads/ios-runtime-master/cmake-build/NativeScript.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'ZERO_CHECK' from project 'NativeScript') /Users/edinabdi/Downloads/ios-runtime-master/cmake-build/NativeScript.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'WebKit' from project 'NativeScript') /Users/edinabdi/Downloads/ios-runtime-master/cmake-build/NativeScript.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'libffi' from project 'NativeScript') /Users/edinabdi/Downloads/ios-runtime-master/cmake-build/NativeScript.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'NativeScript' from project 'NativeScript') ** BUILD FAILED **

tvOS is not officially supported at this time, and that blog post was from 2015, so you may have difficulties following the same steps. I haven't heard of anyone experimenting with tvOS since then, unfortunately, so can't advise.

Unknown argument -appletvsimulator

My only thought is: Are you sure you typed it in correctly? That almost looks like an error from neglecting to put quotes around a string. But it's just a guess.

https://github.com/NativeScript/ios-runtime/blob/5aa8c743fcd75d95d72697d6841c6a111c8a4387/CMakeLists.txt#L41-L42

- set(CMAKE_XCODE_ATTRIBUTE_SUPPORTED_PLATFORMS "iphoneos iphonesimulator")
- set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator")
+ set(CMAKE_XCODE_ATTRIBUTE_SUPPORTED_PLATFORMS "iphoneos iphonesimulator appletvos appletvsimulator")
+ set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator;-appletvos;-appletvsimulator")

If that's exactly what you've entered, then I'm out of ideas!