Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thisiseddy-ab opened this issue Jan 7, 2022 · 1 comment

Comments

@thisiseddy-ab
Copy link

thisiseddy-ab commented Jan 7, 2022

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 **

@shirakaba
Copy link

shirakaba commented Jan 7, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants