-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Can't compile runtime with CMake 3.14 #1097
Comments
I think that you may have missed this step: Can you try repeating it? Also, it may help if you attach the |
I'm sure I did that step but maybe I was missing something at that moment.
I've built an app the usual way (with tns instead of compiling the runtime
myself) and that works. I repeated the steps on the readme for the runtime
and it doesn't. Should I remove the build directory and try again?
Attached are the log files, the ones named webkit are in
`cmake-build/WebKit-prefix/src/WebKit-build/CMakeFiles`
edit: Files weren't attached...
[CMakeOutput.log](https://github.com/NativeScript/ios-runtime/files/2977977/CMakeOutput.log)
[CMakeError (webkit).log](https://github.com/NativeScript/ios-runtime/files/2977978/CMakeError.webkit.log)
[CMakeOutput (webkit).log](https://github.com/NativeScript/ios-runtime/files/2977979/CMakeOutput.webkit.log)
|
I noticed that you are using CMake version 3.13.4, but we currently require version 3.3.2. Can you please switch to it and see how it goes? |
It turns out that with recent versions of CMake the C++ feature tests project fails to build correctly when some of the environment variables inherited by the Xcode build of the NativeScript project are present. Clear the environment before starting the subproject build The variables affecting the build are: export SDKROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk" export CODE_SIGNING_REQUIRED="YES" If any of those is present the configuration step of WebKit fails with `Compiler with C++17 support is required` with the following error present in `CMakeError.log`: ``` Code Signing Warning: "cmTC_635cc" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it. Code Signing Error: Code signing is required for product type 'Command-line Tool' in SDK 'iOS 12.1' ``` refs #1097
It turns out that with recent versions of CMake the C++ feature tests project fails to build correctly when some of the environment variables inherited by the Xcode build of the NativeScript project are present. Clear the environment before starting the subproject build. The variables affecting the build are: ``` SDKROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk" CODE_SIGNING_REQUIRED="YES" ``` If any of them is present the environment, the configuration step of WebKit fails with error `Compiler with C++17 support is required` and the following present in `CMakeError.log`: ``` Code Signing Warning: "cmTC_635cc" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it. Code Signing Error: Code signing is required for product type 'Command-line Tool' in SDK 'iOS 12.1' ``` refs #1097
iOS Runtime should now build correctly with the latest version of CMake |
It turns out that with recent versions of CMake the C++ feature tests project fails to build correctly when some of the environment variables inherited by the Xcode build of the NativeScript project are present. Clear the environment before starting the subproject build. The variables affecting the build are: ``` SDKROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk" CODE_SIGNING_REQUIRED="YES" ``` If any of them is present the environment, the configuration step of WebKit fails with error `Compiler with C++17 support is required` and the following present in `CMakeError.log`: ``` Code Signing Warning: "cmTC_635cc" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it. Code Signing Error: Code signing is required for product type 'Command-line Tool' in SDK 'iOS 12.1' ``` refs #1097
Followed readme instructions to the letter. Linked cmake and llvm-config to /usr/local/bin/.
We want to compile the runtime to then modify with custom features like we did with Android's. But maybe I'm not doing it right... I selected the project "NativeScript" in Xcode.
Fails with this message:
The text was updated successfully, but these errors were encountered: