amplitude / amplitude/Amplitude-ReactNative
ld: library not found for -lAmplitude when lib exists at …/BuildProductsPath/Debug-iphoneos/Amplitude
- Linguagem predominante
- TypeScript
- Estrelas
- 87
- Forks
- 21
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
I keep getting this error when building my app using `xcodebuild` from the command line.
```
xcodebuild -workspace ios/APP_NAME.xcworkspace -scheme APP_NAME clean archive -sdk iphoneos -configuration Debug -UseModernBuildSystem=NO -archivePath $PWD/APP_NAME CODE_SIGNING_ALLOWED=NO;
```
The app builds fine via Xcode UI. This is a react native app, and I tried a bunch of things that didn't work.
- Setting same deployment target for Pods and App projects
- Deleting `libAmplitude.a` from app project's Frameworks folder
- Setting `Build Active Architecture Only` to NO
- Embedding `libAmplitude.a` along with `libPods-APP_NAME.a`
Strangely the file it can't find actually exists in the directory. I see two failures of this type (arm64, armv7).
```
ld: warning: directory not found for option '-L-L/Users/Parth/Library/Developer/Xcode/DerivedData/APP_NAME-atzumsqdaojeyaaukpzreucvvlja/Build/Intermediates.noindex/ArchiveIntermediates/APP_NAME/BuildProductsPath/Debug-iphoneos/Amplitude'
ld: library not found for -lAmplitude
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
Final build failure:
```
The following build commands failed:
Ld /Users/Parth/Library/Developer/Xcode/DerivedData/APP_NAME-atzumsqdaojeyaaukpzreucvvlja/Build/Intermediates.noindex/ArchiveIntermediates/APP_NAME/IntermediateBuildFilesPath/APP_NAME.build/Debug-iphoneos/APP_NAME.build/Objects-normal/arm64/APP_NAME normal arm64
Ld /Users/Parth/Library/Developer/Xcode/DerivedData/APP_NAME-atzumsqdaojeyaaukpzreucvvlja/Build/Intermediates.noindex/ArchiveIntermediates/APP_NAME/IntermediateBuildFilesPath/APP_NAME.build/Debug-iphoneos/APP_NAME.build/Objects-normal/armv7/APP_NAME normal armv7
(2 failures)
```
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.