How to fixed framework errors? - ios

I am using lot of frameworks and pod files in my project like as Parse framework, Bolts Framework etc. and I have fixed all errors like parse.h file not found and any others but now I have some error also like ....
ld: warning: directory not found for option '-L/Crain/iOS Apps/crain_comm_ios/crainmagazine/common/Brightcove-3.0.1/Libraries'
ld: warning: directory not found for option '-L/Crain/iOS Apps/crain_comm_ios/frameworks/Flurry'
ld: warning: directory not found for option '-L/Crain/iOS Apps/crain_comm_ios'
ld: warning: directory not found for option '-F/Crain/iOS'
ld: warning: directory not found for option '-FApps/crain_comm_ios'
ld: warning: directory not found for option '-FApps/crain_comm_ios/frameworks'
ld: warning: directory not found for option '-FApps/crain_comm_ios/frameworks/Parse.framework'
ld: warning: directory not found for option '-F2'
ld: library not found for -lBCiOSSDK
clang: error: linker command failed with exit code 1 (use -v to see invocation)
so can you please tell me answer or any solution.

Some times the device that u compile the project is using 64bit. In debug mode the pod projects in some architecture aren't even complie, U should do this:
See my selections (set it to NO in both modes debug and release) :

warning: directory not found for option - you should fix that problems, linker could not find libraries, I think, you add add headers, but not libraries.

Related

"warning: directory not found; error: library not found" using Xcode build

I'm trying to build an iOS app using Xcode. I'm new to XCode.
I had trouble building it for release purposes with this command : bundle exec fastlane beta that lead to an error :
❌ ld: library not found for -lDoubleConversion
I didn't know what to do so I started by trying to build my app with Xcode, and had this stack :
ld: warning: directory not found for option '-L/Users/myuser/Library/Developer/Xcode/DerivedData/mobile-eeuzlarvkxgtncfhtkicciemdrtq/Build/Products/Debug-iphonesimulator/DoubleConversion'
ld: warning: directory not found for option '-L/Users/myuser/Library/Developer/Xcode/DerivedData/mobile-eeuzlarvkxgtncfhtkicciemdrtq/Build/Products/Debug-iphonesimulator/react-native-cameraroll'
ld: warning: directory not found for option '-L/Users/myuser/Library/Developer/Xcode/DerivedData/mobile-eeuzlarvkxgtncfhtkicciemdrtq/Build/Products/Debug-iphonesimulator/react-native-image-picker'
ld: warning: directory not found for option '-L/Users/myuser/Library/Developer/Xcode/DerivedData/mobile-eeuzlarvkxgtncfhtkicciemdrtq/Build/Products/Debug-iphonesimulator/react-native-safe-area-context'
ld: warning: directory not found for option '-L/Users/myuser/Library/Developer/Xcode/DerivedData/mobile-eeuzlarvkxgtncfhtkicciemdrtq/Build/Products/Debug-iphonesimulator/react-native-webview'
ld: warning: directory not found for option '-L/Users/myuser/Library/Developer/Xcode/DerivedData/mobile-eeuzlarvkxgtncfhtkicciemdrtq/Build/Products/Debug-iphonesimulator/rn-fetch-blob'
ld: library not found for -lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)
From what I already read, I should add these libraries to the Search Paths > Library Search Paths in XCode but these libraries already are set in this configuration. ( screenshot below )
And the "PODS_CONFIGURATION_BUILD" is set as below :
I tried removing those paths and launch the build again, but the project couldn't build. So I reverted the changes.
I'm not sure about what I need to do as I'm new to XCode and this is an existing project.

Xcode returns linker error "library not found for -lFirebaseAuth"

I wanted to test firebase initial app on Unity. I made a build from Unity in macOS and in Xcode project folder, I have runned the pod command successfully.
pod install
After this I opened Xcode project and I clicked to build button. Before this, I was getting framework not found error. I fixed it and now I am getting
ld: warning: directory not found for option '-L/Users/ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/FirebaseAuth'
ld: warning: directory not found for option '-L/Users/ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/FirebaseCore'
ld: warning: directory not found for option '-L/Users/aliavci/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/GTMSessionFetcher'
ld: warning: directory not found for option '-L/Users/ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/nanopb'
ld: library not found for -lFirebaseAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have already added library pathes to library search path. I added some screenshots as attachments.
I solved the error by opening ".xcworkspace" file, instead of ".xcodeproj" file.

XCode Not build my project

I'am using React-Native and react-native-maps but if i want to build it will build failed. Errors is "Apple Mach-O Linker Error Group"
Error:
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/DoubleConversion'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/Folly'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/Google-Maps-iOS-Utils'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/React'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/glog'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/react-native-google-maps'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/react-native-maps'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/yoga'
ld: library not found for -lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Edit:
set Build Active architecture Only to Yes
and add Google maps library its worked!
Please close the xcode project, and open the .xcworkspace file (with white XCode icon) and build your project, as it is required by any project that use Pods.

Always have to set Target Membership for .a File

I am using Flyer and Crittercism in my project . both have libAppsFlyerLib.a and libCrittercism_v4_3_4.a respectively.
Now whenever I open my project and run it I always got this error first time.
ld: warning: directory not found for option
'-LApp/Model/Utility/CrittercismSDK' ld: warning: directory not found
for option '-LApp/Model/CrittercismSDK' ld: warning: directory not
found for option '-LApp' ld: warning: directory not found for option
'-LApp/Model/Flyer' ld: warning: directory not found for option
'-FApp/Model/Fabric' ld: library not found for -lAppsFlyerLib clang:
error: linker command failed with exit code 1 (use -v to see invocation)
To resolve this I have to uncheck and again check Target Membership to Project for both libAppsFlyerLib.a and libCrittercism_v4_3_4.a manually.After that project is running fine.
Why I have to always set membership for .a file manually first time? Am I missing something here?
Because of #trojanfoe's suggestion I get right direction to solve this issue and found that it is happening because it has no library search path in build->setting . So I set path to both .a in library search path file and it works.

linker command failed with exit code 1

I am getting some errors and warnings when I build my IOS project
ld: warning: directory not found for option '-L/Users/parikshitpatel/Documents/IphoneDevelopment/FH/funkiorangemobile_iphonehealthadviceapp/Social'
ld: warning: directory not found for option '-LMedia/Twitter/Twitter'
ld: warning: directory not found for option '-LLibrary/Libraries'
ld: warning: directory not found for option '-L/Users/parikshitpatel/Documents/IphoneDevelopment/FH/funkiorangemobile_iphonehealthadviceapp0/Social'
ld: warning: directory not found for option '-L&'
ld: warning: directory not found for option '-LHeaders'
ld: warning: directory not found for option '-LMedia/Twitter'
ld: library not found for -lOAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am not getting how to fix this error can some one help?
It looks like your Library path is incorrect.
Try to go to: Targets - Build Phases - Link Binary with Libraries
and add your Twitter Library/Framework
In your Folder path there are blank spaces between them. for example:
/Users/parikshitpatel/Documents/IphoneDevelopment/FH/funkiorangemobile_iphonehealthadviceapp/Social Media
In your Library dependencies write Social\ Media instead.
Do the same for other library.
For me I was opening the .xcodeproj Xcode project instead of the .xcworkspace workspace. I'm pretty new to iOS development, but this feels similar to opening the wrong gradle file in Android Studio

Resources