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

Carthage update fails while building Polyline scheme #23

Open
wangela opened this issue Oct 21, 2017 · 4 comments
Open

Carthage update fails while building Polyline scheme #23

wangela opened this issue Oct 21, 2017 · 4 comments

Comments

@wangela
Copy link

wangela commented Oct 21, 2017

When I run scripts/setup.sh I get the attached Build Failed message.
carthage-logs.txt

@wangela
Copy link
Author

wangela commented Oct 21, 2017

I wonder if this is the culprit in Line 334 of Polyline.swift. In function extractNextChunk, line 334 causes the build error 'subscript' is unavailable because it was obsoleted in Swift 4. StackOverflow suggests this fix to your exact MapBox code:
https://stackoverflow.com/questions/45580072/why-wont-substrings-work-in-swift-4-anymore

@wangela
Copy link
Author

wangela commented Oct 21, 2017

Actually Polyline has already been updated to Swift 4 so your Cartfile dependencies should point to that:
https://github.com/raphaelmor/Polyline/tree/v4.2.0
or rather, MapboxDirections dependencies should point to that. I've raised an issue in MapboxDirections.

@boundsj
Copy link
Contributor

boundsj commented Oct 25, 2017

MapboxDirections dependencies should point to that

Looks like that will happen in mapbox/mapbox-directions-swift#196

I get the attached Build Failed message

I think MapboxDirections.swift at "v0.11.2" should still work. I'm not able to reproduce the issue you have when I try with Xcode Version 9.0 (9A235) and Carthage v0.26.2. In my log I see:

...

/usr/bin/xcrun xcodebuild -project /Users/boundsj/workspace/mapbox-arkit-ios/Carthage/Checkouts/Polyline/Polyline.xcodeproj -scheme Polyline -configuration Release -derivedDataPath /Users/boundsj/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/Polyline/v4.1.1 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath ./ SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO (launched in /Users/boundsj/workspace/mapbox-arkit-ios/Carthage/Checkouts/Polyline)User defaults from command line:
    IDEArchivePathOverride = /Users/boundsj/workspace/mapbox-arkit-ios/Carthage/Checkouts/Polyline
    IDEDerivedDataPathOverride = /Users/boundsj/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/Polyline/v4.1.1

...

** BUILD SUCCEEDED **

...

Can you try clearing the Carthage Build and Checkouts folders in your project also and the derived data in from the directory noted in the log you attached (/Users/wa/Library/Caches/org.carthage.CarthageKit/DerivedData/)?

@wangela
Copy link
Author

wangela commented Oct 26, 2017

Hm, cleared Carthage/Build and Carthage/Checkouts and Derived Data. Ran scripts/setup.sh again, got same errors. Same xcode, same carthage versions.

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