WebDriverAgent icon indicating copy to clipboard operation
WebDriverAgent copied to clipboard

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

Open ngbrito opened this issue 7 years ago • 8 comments

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

ngbrito avatar Nov 29 '18 13:11 ngbrito

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)

brian-leidos avatar Nov 30 '18 17:11 brian-leidos

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.

guadaran avatar Nov 30 '18 18:11 guadaran

Hello @guadaran

Can you tell me how can I fix that?

Tx

ngbrito avatar Dec 03 '18 10:12 ngbrito

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 avatar Dec 03 '18 14:12 ngbrito

Hello @guadaran ,

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

Signing for "WebDriverAgentRunner" requires a development team.

Do you have any idea?

ngbrito avatar Dec 03 '18 18:12 ngbrito

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

brian-leidos avatar Dec 04 '18 11:12 brian-leidos

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

eugeneponomarenko avatar Dec 06 '18 07:12 eugeneponomarenko

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

sunguangshou avatar Jan 17 '19 01:01 sunguangshou