after update xcode 9.3 linker problem

hi i found this error after update xcode 9.3 from 9.2


any suggestions?


ld: warning: directory not found for option '-L/Users/Simone/Library/Developer/Xcode/DerivedData/SocketRocket-gpwoloeyxvlrxmbottacjrujynav/Build/Products/Debug-iphoneos'

ld: warning: ignoring file /Users/Simone/Desktop/Lavori/prove c mac/VanigliaPro_beta_xcode5_ios8_beta_gelaterie_ios11_agendaserver/libSocketRocket.a, file was built for archive which is not the architecture being linked (arm64): /Users/Simone/Desktop/Lavori/prove c mac/VanigliaPro_beta_xcode5_ios8_beta_gelaterie_ios11_agendaserver/libSocketRocket.a

ld: entry point (_main) undefined. for architecture arm64

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

Replies

>> ld: warning: ignoring file […]/libSocketRocket.a, file was built for archive which is not the architecture being linked (arm64)


It looks like you need to rebuild (or get a new version of) the SocketRocket static library. Some older architectures are no longer supported by Xcode.


>> ld: warning: directory not found for option '-L/Users/Simone/Library/Developer/Xcode/DerivedData/SocketRocket-gpwoloeyxvlrxmbottacjrujynav/Build/Products/Debug-iphoneos'


This may be a secondary error, but it suggests an error in your build settings. Look for the "Libraries" section of the "Search Paths" build setting, and see if this path (or a partial path like this) is there. If it is, you should probably remove it. (Xcode sometimes adds things to this setting when you add static libraries to your project, but you normally don't want to search relative to the build products.) Note that this is just a warning, so removing the setting should be harmless.

>ld: warning: directory not found for option '-L/Users/Simone/Library/Developer/Xcode/DerivedData/SocketRocket-gpwoloeyxvlrxmbottacjrujynav/Build/Products/Debug-iphoneos'
A " directory not found for option '-L/...' = Library Error:

Select the Target<name>/Build Settings/All/Toggle 'Search Paths' to view Library Search Paths and delete paths found there


Caution - this can in some cases break links/paths to other files/locations - best to work on a project copy or have a backup in place first.

After clearing those paths, use Xcode's Product menu w/the option key pressed, then choose to 'clean build folder', then check for errors in the navigator and go for build again.