Giter VIP home page Giter VIP logo

Comments (7)

moozzyk avatar moozzyk commented on August 29, 2024

from signalr-client-swift.

anujb avatar anujb commented on August 29, 2024

I just tried this to test out that theory using the .4.2 commit hash (see below). I believe this error due to the way the Xcode project integrates Cocoapods. If I remove the *.xcconfig files then it successfully builds.

$carthage update --platform iOS
*** Checking out SignalR-Client-Swift at "98609fc1bd59c965eb949f052c281681154b2ee1"
*** Building scheme "iOS SignalRClient" in SignalRClient.xcworkspace

Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -workspace /Users/anuj/projects/ios/Eva/ios/Eva/Carthage/Checkouts/SignalR-Client-Swift/SignalRClient.xcworkspace -scheme iOS\ SignalRClient -configuration Release -derivedDataPath /Users/anuj/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2.1_10E1001/SignalR-Client-Swift/98609fc1bd59c965eb949f052c281681154b2ee1 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/dj/1hvxkr256vlcd2qft9ww4jq00000gn/T/SignalR-Client-Swift SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/anuj/projects/ios/Eva/ios/Eva/Carthage/Checkouts/SignalR-Client-Swift)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/dj/1hvxkr256vlcd2qft9ww4jq00000gn/T/carthage-xcodebuild.m7qDUk.log

And I get the same result with the error log:

$cat /var/folders/dj/1hvxkr256vlcd2qft9ww4jq00000gn/T/carthage-xcodebuild.m7qDUk.log | grep error:

error: /Users/anuj/projects/ios/Eva/ios/Eva/Carthage/Checkouts/SignalR-Client-Swift/Pods/Target Support Files/Pods-iOS SignalRClient/Pods-iOS SignalRClient.release.xcconfig: unable to open file (in target "iOS SignalRClient" in project "SignalRClient") (in target 'iOS SignalRClient')
error: /Users/anuj/projects/ios/Eva/ios/Eva/Carthage/Checkouts/SignalR-Client-Swift/Pods/Target Support Files/Pods-iOS SignalRClient/Pods-iOS SignalRClient.release.xcconfig: unable to open file (in target "iOS SignalRClient" in project "SignalRClient") (in target 'iOS SignalRClient')
error: /Users/anuj/projects/ios/Eva/ios/Eva/Carthage/Checkouts/SignalR-Client-Swift/Pods/Target Support Files/Pods-iOS SignalRClient/Pods-iOS SignalRClient.release.xcconfig: unable to open file (in target "iOS SignalRClient" in project "SignalRClient") (in target 'iOS SignalRClient')

from signalr-client-swift.

GuidoHendriks avatar GuidoHendriks commented on August 29, 2024

Any progress on this?

from signalr-client-swift.

moozzyk avatar moozzyk commented on August 29, 2024

from signalr-client-swift.

moozzyk avatar moozzyk commented on August 29, 2024

I think the issue here is that Carthage is trying to build Examples but building Examples requires running pod install. Just to test this hypothesis I ran:

moozzyk:~/tmp/carthage-test$ ls
Cartfile
moozzyk:~/tmp/carthage-test$ carthage update --platform macOS
*** Checking out SignalR-Client-Swift at "3c72557a6ccdf2c19556d512e7259c517bad2d85"
*** xcodebuild output can be found in /var/folders/6v/x42kfppx18s4pgcnsw04fklc0000gn/T/carthage-xcodebuild.Ei2Ipy.log
*** Building scheme "SignalRClient-Package" in SignalRClient.xcodeproj
*** Building scheme "macOS SignalRClient" in SignalRClient.xcworkspace
Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -workspace /Users/moozzyk/tmp/carthage-test/Carthage/Checkouts/SignalR-Client-Swift/Examples/SignalRClient.xcworkspace -scheme macOS\ SignalRClient -configuration Release -derivedDataPath /Users/moozzyk/Library/Caches/org.carthage.CarthageKit/DerivedData/10.3_10G8/SignalR-Client-Swift/3c72557a6ccdf2c19556d512e7259c517bad2d85 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/6v/x42kfppx18s4pgcnsw04fklc0000gn/T/SignalR-Client-Swift SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/moozzyk/tmp/carthage-test/Carthage/Checkouts/SignalR-Client-Swift)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/6v/x42kfppx18s4pgcnsw04fklc0000gn/T/carthage-xcodebuild.Ei2Ipy.log
moozzyk:~/tmp/carthage-test$ cd /Users/moozzyk/tmp/carthage-test/Carthage/Checkouts/SignalR-Client-Swift/Examples/Pods
-bash: cd: /Users/moozzyk/tmp/carthage-test/Carthage/Checkouts/SignalR-Client-Swift/Examples/Pods: No such file or directory
moozzyk:~/tmp/carthage-test$ cd /Users/moozzyk/tmp/carthage-test/Carthage/Checkouts/SignalR-Client-Swift/Examples
moozzyk:~/tmp/carthage-test/Carthage/Checkouts/SignalR-Client-Swift/Examples$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 0 dependencies from the Podfile and 0 total pods installed.

[!] The Podfile does not contain any dependencies.
moozzyk:~/tmp/carthage-test/Carthage/Checkouts/SignalR-Client-Swift/Examples$ cd -
/Users/moozzyk/tmp/carthage-test
moozzyk:~/tmp/carthage-test$ carthage update --platform macOS
*** Checking out SignalR-Client-Swift at "3c72557a6ccdf2c19556d512e7259c517bad2d85"
*** xcodebuild output can be found in /var/folders/6v/x42kfppx18s4pgcnsw04fklc0000gn/T/carthage-xcodebuild.pP6Cuh.log
*** Building scheme "SignalRClient-Package" in SignalRClient.xcodeproj
*** Building scheme "macOS SignalRClient" in SignalRClient.xcworkspace

(after the initial failure of carthage update I went to the Carthage/Checkouts/SignalR-Client-Swift/Examples folder and ran pod update and then re-run carthage update).

I think that ideally the Examples folder should not be built. I wonder if it can be excluded with a Cartfile.ignore file

from signalr-client-swift.

moozzyk avatar moozzyk commented on August 29, 2024

Just noticed that the PR to add Cartfile.ignore file was never merged. For reference here is an issue in Carthage that seems related Carthage/Carthage#1227. Looks like a workaround for now can be:

carthage update --no-build 
cd Carthage/Checkouts/SignalR-Client-Swift/Examples
pod update
cd -
carthage build --platform macOS

Possibly, instead of pod update the entire Examples folder in the Checkout folder could be just deleted between carthage update and carthage build.

from signalr-client-swift.

moozzyk avatar moozzyk commented on August 29, 2024

Fixed via 0a20195

from signalr-client-swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.