manishPatwari / WebDriverAgent

A WebDriver server for iOS that runs inside the Simulator.
Other
52 stars 15 forks source link

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

Open ngbrito opened 5 years ago

ngbrito commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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:

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

Regards.

ngbrito commented 5 years ago

Hello @guadaran

Can you tell me how can I fix that?

Tx

ngbrito commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

eugeneponomarenko commented 5 years ago

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

sunguangshou commented 5 years ago

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