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 build for Nimble framework with deprecated linker flag -lswiftXCTest #1123

Closed
lukasz-szyszkowski opened this issue Jun 1, 2021 · 1 comment · Fixed by #1124
Closed
Assignees

Comments

@lukasz-szyszkowski
Copy link
Contributor

lukasz-szyszkowski commented Jun 1, 2021

Which version of the Ably SDK are you using?

1.2.4

On which platform does the issue happen?

all supported platforms

Are you using Carthage?

0.38.0

Are you using Cocoapods?

1.10.1

Which version of Xcode are you using?

12.5 (12E262)

What did you do?

run make update

What did you expect to happen?

project will be configured properly with all dependencies and ready for tests

What happened instead?

An error occured, when building Nimble framework

Ld /Users/luk********ski/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5_12E262/Nimble/v9.0.0/Build/Intermediates.noindex/ArchiveIntermediates/Nimble-macOS/IntermediateBuildFilesPath/Nimble.build/Release/Nimble-macOS.build/Objects-normal/x86_64/Binary/Nimble normal x86_64 (in target 'Nimble-macOS' from project 'Nimble')
    cd /Users/luk********ski/@projekty_ios/ably-cocoa/Carthage/Checkouts/Nimble
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-macos10.10 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -L/Users/luk********ski/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5_12E262/Nimble/v9.0.0/Build/Intermediates.noindex/ArchiveIntermediates/Nimble-macOS/BuildProductsPath/Release -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F/Users/luk********ski/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5_12E262/Nimble/v9.0.0/Build/Intermediates.noindex/ArchiveIntermediates/Nimble-macOS/BuildProductsPath/Release -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -filelist /Users/luk********ski/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5_12E262/Nimble/v9.0.0/Build/Intermediates.noindex/ArchiveIntermediates/Nimble-macOS/IntermediateBuildFilesPath/Nimble.build/Release/Nimble-macOS.build/Objects-normal/x86_64/Nimble.LinkFileList -install_name @rpath/Nimble.framework/Versions/A/Nimble -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -rpath -Xlinker @loader_path/../Frameworks -Xlinker -object_path_lto -Xlinker /Users/luk********ski/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5_12E262/Nimble/v9.0.0/Build/Intermediates.noindex/ArchiveIntermediates/Nimble-macOS/IntermediateBuildFilesPath/Nimble.build/Release/Nimble-macOS.build/Objects-normal/x86_64/Nimble_lto.o -fobjc-arc -fobjc-link-runtime -fapplication-extension -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/luk********ski/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5_12E262/Nimble/v9.0.0/Build/Intermediates.noindex/ArchiveIntermediates/Nimble-macOS/IntermediateBuildFilesPath/Nimble.build/Release/Nimble-macOS.build/Objects-normal/x86_64/Nimble.swiftmodule -Xlinker -no_application_extension -weak_framework XCTest -weak-lswiftXCTest -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/luk********ski/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5_12E262/Nimble/v9.0.0/Build/Intermediates.noindex/ArchiveIntermediates/Nimble-macOS/IntermediateBuildFilesPath/Nimble.build/Release/Nimble-macOS.build/Objects-normal/x86_64/Nimble_dependency_info.dat -o /Users/luk********ski/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5_12E262/Nimble/v9.0.0/Build/Intermediates.noindex/ArchiveIntermediates/Nimble-macOS/IntermediateBuildFilesPath/Nimble.build/Release/Nimble-macOS.build/Objects-normal/x86_64/Binary/Nimble
ld: library not found for -lswiftXCTest
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **


The following build commands failed:
	Ld /Users/luk********ski/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5_12E262/Nimble/v9.0.0/Build/Intermediates.noindex/ArchiveIntermediates/Nimble-macOS/IntermediateBuildFilesPath/Nimble.build/Release/Nimble-macOS.build/Objects-normal/x86_64/Binary/Nimble normal x86_64
(1 failure)

┆Issue is synchronized with this Jira Uncategorised by Unito

@ben-xD
Copy link
Contributor

ben-xD commented Jun 2, 2021

For reference, here is the issue in the Nimble repo: Quick/Nimble#855

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants