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

Build errors with Carthage; Xcode 9 #10

Closed
mfcollins3 opened this issue Sep 29, 2017 · 1 comment
Closed

Build errors with Carthage; Xcode 9 #10

mfcollins3 opened this issue Sep 29, 2017 · 1 comment

Comments

@mfcollins3
Copy link

I read about your project in the iOS Dev Weekly newsletter. I'm looking forward to trying it.

I added LifetimeTracker to my Cartfile in my project to build it using Carthage and ran carthage update. Immediately, it failed on the Carthage build. The log is below. I tried with the other platforms to test, but only the iOS platform support is building correctly.

Carthage is reporting that it's pulling the 1.0.4 tag from the repository. I saw that you just updated that.

Here's the log that I'm getting when it's trying the macOS build.

/usr/bin/xcrun xcodebuild -project /Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked\ Blogging/Carthage/Checkouts/LifetimeTracker/LifetimeTracker.xcodeproj -scheme LifetimeTracker-macOS -configuration Release -derivedDataPath /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build (launched in /Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked Blogging/Carthage/Checkouts/LifetimeTracker)User defaults from command line:
    IDEDerivedDataPathOverride = /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4

Build settings from command line:
    CARTHAGE = YES
    CODE_SIGN_IDENTITY = 
    CODE_SIGNING_REQUIRED = NO
    ONLY_ACTIVE_ARCH = NO

=== BUILD TARGET LifetimeTracker-macOS OF PROJECT LifetimeTracker WITH CONFIGURATION Release ===

Check dependencies

Write auxiliary files
/bin/mkdir -p /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64/LifetimeTracker.LinkFileList
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-project-headers.hmap
/bin/mkdir -p /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/DerivedSources
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/DerivedSources/LifetimeTracker_vers.c
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/all-product-headers.yaml
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/swift-overrides.hmap
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker.hmap
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-generated-files.hmap
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/module.modulemap
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-own-target-headers.hmap
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-all-non-framework-target-headers.hmap
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64/LifetimeTracker-macOS-OutputFileMap.json
write-file /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-all-target-headers.hmap

Create product structure
/bin/mkdir -p /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/LifetimeTracker.framework/Versions/A/Modules
/bin/ln -sfh Versions/Current/Modules /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/LifetimeTracker.framework/Modules
/bin/mkdir -p /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/LifetimeTracker.framework/Versions/A/Headers
/bin/mkdir -p /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/LifetimeTracker.framework/Versions/A/Resources
/bin/ln -sfh A /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/LifetimeTracker.framework/Versions/Current
/bin/ln -sfh Versions/Current/Resources /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/LifetimeTracker.framework/Resources
/bin/ln -sfh Versions/Current/Headers /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/LifetimeTracker.framework/Headers
/bin/ln -sfh Versions/Current/LifetimeTracker /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/LifetimeTracker.framework/LifetimeTracker

ProcessInfoPlistFile /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/LifetimeTracker.framework/Versions/A/Resources/Info.plist Configs/LifetimeTracker.plist
    cd "/Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked Blogging/Carthage/Checkouts/LifetimeTracker"
    builtin-infoPlistUtility /Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked\ Blogging/Carthage/Checkouts/LifetimeTracker/Configs/LifetimeTracker.plist -expandbuildsettings -platform macosx -o /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/LifetimeTracker.framework/Versions/A/Resources/Info.plist

CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
    cd "/Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked Blogging/Carthage/Checkouts/LifetimeTracker"
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name LifetimeTracker -O -whole-module-optimization -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -target x86_64-apple-macosx10.10 -g -module-cache-path /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/ModuleCache -Xfrontend -serialize-debugging-options -application-extension -profile-coverage-mapping -profile-generate -swift-version 3 -I /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release -F /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release -parse-as-library -c -num-threads 8 /Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked\ Blogging/Carthage/Checkouts/LifetimeTracker/Sources/LifetimeTracker.swift -output-file-map /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64/LifetimeTracker-macOS-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64/LifetimeTracker.swiftmodule -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-generated-files.hmap -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-own-target-headers.hmap -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-project-headers.hmap -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/include -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/DerivedSources/x86_64 -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/DerivedSources -emit-objc-header -emit-objc-header-path /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64/LifetimeTracker-Swift.h -Xcc -working-directory/Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked\ Blogging/Carthage/Checkouts/LifetimeTracker

CompileSwift normal x86_64 /Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked Blogging/Carthage/Checkouts/LifetimeTracker/Sources/LifetimeTracker.swift
    cd /Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked Blogging/Carthage/Checkouts/LifetimeTracker
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c "/Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked Blogging/Carthage/Checkouts/LifetimeTracker/Sources/LifetimeTracker.swift" -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -I /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release -F /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release -application-extension -g -module-cache-path /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/ModuleCache -profile-generate -profile-coverage-mapping -swift-version 3 -serialize-debugging-options -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-generated-files.hmap -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-own-target-headers.hmap -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/LifetimeTracker-project-headers.hmap -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Products/Release/include -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/DerivedSources/x86_64 -Xcc -I/Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/DerivedSources -Xcc "-working-directory/Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked Blogging/Carthage/Checkouts/LifetimeTracker" -emit-module-doc-path /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64/LifetimeTracker.swiftdoc -serialize-diagnostics-path /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64/LifetimeTracker.dia -O -parse-as-library -module-name LifetimeTracker -emit-module-path /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64/LifetimeTracker.swiftmodule -emit-objc-header-path /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64/LifetimeTracker-Swift.h -emit-dependencies-path /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64/LifetimeTracker.d -num-threads 8 -o /Users/michaelcollins/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0_9A235/LifetimeTracker/1.0.4/Build/Intermediates.noindex/LifetimeTracker.build/Release/LifetimeTracker-macOS.build/Objects-normal/x86_64/LifetimeTracker.o
/Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked Blogging/Carthage/Checkouts/LifetimeTracker/Sources/LifetimeTracker.swift:96:9: error: use of unresolved identifier 'onDealloc'
        onDealloc(of: instance) {
        ^~~~~~~~~
Darwin.realloc:1:13: note: did you mean 'realloc'?
public func realloc(_ __ptr: UnsafeMutableRawPointer!, _ __size: Int) -> UnsafeMutableRawPointer!
            ^
ObjectiveC._dealloc:2:12: note: did you mean '_dealloc'?
public var _dealloc: @convention(c) (Any?) -> Any?
           ^
ObjectiveC._realloc:2:12: note: did you mean '_realloc'?
public var _realloc: @convention(c) (Any?, Int) -> Any?
           ^

** BUILD FAILED **


The following build commands failed:
	CompileSwift normal x86_64 /Users/michaelcollins/Projects/nakedsoftware/naked-blogging-apple/Naked Blogging/Carthage/Checkouts/LifetimeTracker/Sources/LifetimeTracker.swift
	CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)

I'm getting the same errors for the tvOS and watchOS schemes.

@krzysztofzablocki
Copy link
Owner

krzysztofzablocki commented Sep 29, 2017

Fixed in 1.0.5, we'll need to create UI for those platforms though as they can't use Dashboard integration given its different UI.

You can use LifetimeTracker and just connect to something else or use printing / sound for it, as the UI and tracking are separated.

Not sure if you have time or interest but I'd be happy to accept PR that adds macOS dashboard variant

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