Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

ios-9-2 toolchain failure #70

Closed
novocodev opened this issue Mar 11, 2016 · 5 comments
Closed

ios-9-2 toolchain failure #70

novocodev opened this issue Mar 11, 2016 · 5 comments

Comments

@novocodev
Copy link

I had been building a framework for iOS without error using:

./buildtools/polly/bin/build.py --clear --toolchain ios-9-2 --framework --config Release

I have been adding unit tests and I upgraded Boost to 1.60.0, I did this while building the framework for Xcode toolchain without error.

On going back to build with the iOS-9-2 toolchain the build now fails, I have Xcode 7.2.1 installed and it appears I am seeing the following issue

At the end of the ticket the simplest solution appears to be:

Another workaround is to pass PLATFORM_NAME=iphonesimulator to xcodebuild, in addition to -sdk iphonesimulator.

I'd like to try this, but I'm not sure which is the right .cmake to add the option.

@novocodev novocodev changed the title ios-9-2 toolchain now fails ios-9-2 toolchain failure Mar 11, 2016
@novocodev
Copy link
Author

I tried building with '--framework-device' to skip simulator target but the same error persists.

@novocodev
Copy link
Author

I have updated to latest hunter and polly and CMake 3.5.0

I have tried the new --ios command line options, not sure if they should be used instead of or in conjunction with the --framework option e.g.

build.py --clear --toolchain ios-9-2 --ios-combined --ios-multiarch --config Release

I'm still getting the same error for the iOS toolchain with all permutations.

@ruslo
Copy link
Owner

ruslo commented Mar 12, 2016

I have Xcode 7.2.1 installed and it appears I am seeing the following issue

This error is about simulator as far as I can see. You're trying to build simulator + device?

I'd like to try this, but I'm not sure which is the right .cmake to add the option

You can't do it in CMake code. Flags should be added to build step. So you can call build step without build.py wrapper like cmake --build _builds -- -sdk iphonesimulator ... or I can add extra option to build.py, like --iossim.

they should be used instead of or in conjunction with the --framework option

In conjunction. multiarch for fat arm*, combined for fat simulator + device, framework for creating frameworks.

@novocodev
Copy link
Author

I have been unable to resolve this issue using any of the suggested fixes in various Q/A threads.

But today the issue has gone away!

I think upgrading to hunter 0.14.1 was the solution.

I had also gone back to a point in my git commit history where the iOS build was working and then gone back to HEAD on master.

Closing this out, if I experience the error again I'll open a new ticket.

@ruslo
Copy link
Owner

ruslo commented Mar 19, 2016

Closing this out, if I experience the error again I'll open a new ticket

Cool, good to know.

@ruslo ruslo closed this as completed Mar 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants