-
Notifications
You must be signed in to change notification settings - Fork 189
XCode 8 and iOS 10 Support #102
Comments
I think I have found a solution, adding
Solves the code signing issue. If one can find the Developer Team ID automatically it would be very nice. |
@joeced Thanks for the info. I have not installed Xcode 8 yet. Will take a look later. |
Awesome, works like a charm :-) thanks guys ! |
@ruslo Great. If you have any ideas on either finding Developer Team ID automatically or "just" use a variable to define, I'll be happy to make a pull request. |
@joeced there is a stupid method, i modify the ios-10-0.cmake,and add the following lines: |
Just for your info this will break Hunter builds: https://github.com/ruslo/hunter/wiki/error.abi.detection.failure |
For reference: http://stackoverflow.com/a/18727947 |
Per @joeced, adding the
|
@headupinclouds I think that looks like a nice solution, and matches the pattern use in other toolchain files. |
…ript for polly ios 10 toolchain see: ruslo/polly#102 (comment)
Can't find anything :(
Yes, seems like an appropriate solution. Implemented in Documentation: |
Thanks! |
Great! Thanks. |
Error still occurs?
|
@gelldur are you sure everything okay with your provisioning profiles? Can you try to start Xcode and build/run trivial example on your device? (without CMake and without Polly) |
@ruslo the same with example |
@gelldur what is the version of Polly you're using? Probably you need to update: |
@ruslo yesterday i downloaded master |
@gelldur can you show the minimal example to reproduce the problem? Does error occur for this one: cmake_minimum_required(VERSION 3.7)
project(foo) ? |
CMakeLists.txt: CMAKE_MINIMUM_REQUIRED (VERSION 3.7)
PROJECT (test)
ADD_EXECUTABLE(Test main.cpp) I used: -- Edit |
@gelldur |
@gelldur use xcode to create a simple project for ios,and the bundle id is com.example, and check the auto option,then xcode will auto download the provisioning profiles, when compile success, close xcode ,then use the polly to build your's project |
@reasonMix Already checked as far as I understand @gelldur I can reproduce similar error by providing incorrect team-id. Can you verify that team-id is correct? Here is the guide: Also I haven't updated Xcode yet, just for your information I'm using Xcode 8.0 and iOS 10.0 SDK. |
I use Xcode 8.0 and iOS 10.1 SDK, and it works fine for me. |
I have changed CMakeLists.txt: CMAKE_MINIMUM_REQUIRED (VERSION 3.7)
PROJECT (foo)
ADD_EXECUTABLE(Foo main.cpp) I have checked my team id twice. After creating Example project with
|
Added by Polly here:
Please open separate issue if the problem is not about team-id. And if the problem is about Polly of course :) |
Ok now everything ok. Important note is that project MUST BE created next to top level CMakeLists to prevent such bugs... also i reset to default build paths for all submodules. Thx for help! |
What do you mean? Your top level CMakeLists.txt doesn't contain
@gelldur Can you summarize what was the problem exactly and the solution? This may be helpful for other developers. This info can be saved to |
Normally when you create project simply you do: mkdir build
cd build
cmake .. In my case when i do it in this way i have a lot of errors. Ok maybe not errors but sometimes subprojects do not build etc. i just must execute My top level CMakeLists.txt contains project. On linux / android everything is working correctly |
@gelldur You mean
In source build?
Probably issue is masked by some factor on such platforms but on iOS it triggers real errors. |
yeah cmake.. was only shortcut ;) for whole command. I have such order:
|
It would be much easier if you provide an example and what kind of errors you get. Also this doesn't seems like a Polly related issue, just some cmake related troubles in CMakeLists.txt. |
This post ☝️ from @reasonMix helped me get through an error on a new OS X + Xcode 8 installation. It seems the process of creating a project "manually" has some side-effect that is required for CMake builds to work. ENV = { Xcode 8.2, OS X 10.12.2; Cmake = 3.7.2 }. |
@headupinclouds Okay, saved to documentation: @reasonMix thanks for sharing |
Step by step document with screenshots: |
I recently updated to XCode 8 and the iOS 10 SDK. I have been using the
ios-9-3.cmake
toolchain with great success. I have tried to copy it to a new toolchain file,ios-10-0.cmake
, updatingset(IOS_SDK_VERSION 10.0)
. Unfortunately, this is not enough. I get the error message below when runningcmake -GXcode -DCMAKE_TOOLCHAIN_FILE=polly/ios-10-0.cmake
:As one can see XCode now requires a development team for code signing to work. I tried adding
set(CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM "iPhone Developer Team")
but this results in:Does anyone have an idea to get around this issue?
The text was updated successfully, but these errors were encountered: