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

linker command failed with exit code 1 (use -v to see invocation) #18

Open
ngbrito opened this issue Nov 29, 2018 · 8 comments
Open

linker command failed with exit code 1 (use -v to see invocation) #18

ngbrito opened this issue Nov 29, 2018 · 8 comments

Comments

@ngbrito
Copy link

ngbrito commented Nov 29, 2018

Hello Guys,

Im getting above message and cant fix it. Already performed the changes suggest in readme but without any success.

Can u help?

Tx

@brian-leidos
Copy link

brian-leidos commented Nov 30, 2018

Same here, macOS High Sierra, Xcode 10.1.

Full error:
ld: bitcode bundle could not be generated because '/Users/me/Library/Developer/Xcode/DerivedData/WebDriverAgent-bibralydbkgwaxdznljvmzopmmqu/Build/Intermediates.noindex/SwiftMigration/WebDriverAgentRunner/Products/Debug-iphoneos/Starscream.framework/Starscream' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/Users/me/Library/Developer/Xcode/DerivedData/WebDriverAgent-bibralydbkgwaxdznljvmzopmmqu/Build/Intermediates.noindex/SwiftMigration/WebDriverAgentRunner/Products/Debug-iphoneos/Starscream.framework/Starscream' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@guadaran
Copy link

guadaran commented Nov 30, 2018

Hi @ngbrito, @brian-leidos,

This problem is related to support for XCode 10 see #14 and this

Basically some classes are moved from public XCTest framework to private XCTAutomationSupport one.

In order to be able to compile WDA with new XCode we need to either:

  • explicitly link both frameworks
  • remove direct class allocations

The next week I will be uploading a PR to try to solve this problem.

Regards.

@ngbrito
Copy link
Author

ngbrito commented Dec 3, 2018

Hello @guadaran

Can you tell me how can I fix that?

Tx

@ngbrito
Copy link
Author

ngbrito commented Dec 3, 2018

Hello @guadaran

I managed how to link the frameworks but now, I'm getting the following error:

ld: warning: directory not found for option '-L/Users/bnatali/Library/Developer/Xcode/DerivedData/WebDriverAgent-ddbnatzwdhypxzfdluybevbwoynr/Build/Products/Debug-iphoneos/SDVersion'
ld: library not found for -lSDVersion
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can you help?

@ngbrito
Copy link
Author

ngbrito commented Dec 3, 2018

Hello @guadaran ,

I could fix that issue too. Now, I got this:

Signing for "WebDriverAgentRunner" requires a development team.

Do you have any idea?

@brian-leidos
Copy link

@ngbrito would you mind posting details of what you changed?

@eugeneponomarenko
Copy link

@ngbrito I will be appreciated too, if you share details how you resolved this issues.

@sunguangshou
Copy link

Hi @ngbrito, @brian-leidos,

This problem is related to support for XCode 10 see #14 and this

Basically some classes are moved from public XCTest framework to private XCTAutomationSupport one.

In order to be able to compile WDA with new XCode we need to either:

  • explicitly link both frameworks
  • remove direct class allocations

The next week I will be uploading a PR to try to solve this problem.

Regards.

Can you tell me how to operate the following two steps

  • explicitly link both frameworks
  • remove direct class allocations

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

5 participants