-
Notifications
You must be signed in to change notification settings - Fork 906
Could not find or use auto-linked library '..." #755
Comments
facebook-ios-sdk v7 now requires that apps use the swift interfaces -https://github.com/facebook/facebook-ios-sdk/blob/master/CHANGELOG.md#700 Add a |
is it possible to add this to the documentation as a setup step? lost a whole day on this |
How come such a show stopper requirement isn't in bold in the installation steps? |
PLease add this in the documentation File.swift |
Just to note, you have to put |
Solves this issues: facebookarchive#755 facebookarchive#757
I added this PR to improve the readme, #767 |
@AndrewJack, I'm not sure to get it, do we need to have only
I wonder why installing these dependencies is so hard and confusing. |
I managed to make it work following another installation process: steps 3 and 4 here(only found this french but that should do):
So there is no |
I'm having the same issue and followed the same steps to build this.
but still i'm getting the same errors, do anyone have managed to successfully build it? |
@LuisMendoza7 Using the aforementioned build steps I managed to make it work. I only found this out of luck because I'm french (couldn't find these steps in the english version). There is a serious documentation problem for this install (links instead of a clear description). |
Did same but did not work using >0.60 version RN. |
In my case, I had to create the swift file following this process: https://stackoverflow.com/a/56187043/1773450 (i.e. from XCode and creating the "Bridging Header"). So to sum it up, to update the lib I had to run
and then
I hope it helps... Good luck! |
Thanks @oailloud! It's work for me. |
I've done all of these steps and I'm still getting the original error from the bug report. |
do we only have to create a .swift file and nothing written in it? what code I have to put in that file? |
@waqaramjad Empty Swift file seems to work just fine |
It's important that you create the file in XCode and not manually. It will generate a second file called |
I created the file using Xcode. I'm still not able to compile. I get about 100 errors after the warnings in this original bug report. Can't compile, not idea what to do next. |
This solution helped me when I upgraded RN v0.62.2 but then I ran into a similar issue when I upgraded again to RN v0.63.2 Specifically, I'm only seeing 3 libraries from the fbsdk that are failing to be found
This is with |
I'm also struggling with that issue, first I had that issue when I was installing |
same issue here. |
Same issue here... |
Getting this error on 63.2. Anybody found how to debug and solve? thanks |
@oailloud Thank you. for me this was enough.
|
The problem re-appeared in our project with the new XCode version.
Deleting the |
Thank you @oailloud !!! |
@emilioheinz If you already have a .swift file, try deleting it. Xcode didn't prompt me either I think because I had already tried making my own .swift file in a different folder. After I deleted it and made the file again in Xcode I was prompted for the header file. |
I've created the file manually |
@oailloud thanks. It helped. |
@emilioheinz when creating the file. Try to check in the targets the tests. Sample MyUpTests. check it. |
I tried all the solutions above and none worked. Then I tried:
I am now able to run successfully using Keep in mind I had already added the .swift file and bridging header. Hope this helps someone else! |
I'm in the same boat as @emilioheinz. I'm not prompted to do"Create Bridging Header". I searched for that build setting configuration and it is empty. Any advice from here? |
Same issue as @TheFunktory and @emilioheinz. Did you find a solution? |
@raboija That solved the issue for me |
Creating File.swift in my main project folder fixed the issue for me... it auto created the (ProjectName)-Bridging-Header.h file, which appears to be empty. |
In some cases (idk why) the |
Adding a .swift file + generating the Bridging Headers fixt our problems. Thank you @AndrewJack |
Thanks @oailloud |
When you create a new swift file in XCode via File/New menu make sure you select the checkbox corresponding your Target project. Otherwise you will not be prompted for Bridging Header creation and xxx-Bridging-Header.h file will not get created. |
alternative 'file.swift' solution for Podfile
|
In case you see the issue after updating React Native from 0.63.x to 0.64.x, try this solution:
|
Thanks a lot bro |
🐛 Bug Report
Upon installing this library, and installing the pods, I try to run a build on the simulator. I get the following error (it was building properly before):
To Reproduce
Install library, install pods, try to build
Expected Behavior
Successful build
Environment
System:
OS: macOS 10.15.1
CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Memory: 200.69 MB / 16.00 GB
Shell: 5.7.1 - /usr/local/bin/zsh
Binaries:
Node: 13.11.0 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.13.7 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 25, 27, 28
Build Tools: 25.0.2, 26.0.2, 28.0.3
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5692245
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
npmPackages:
react: ^16.10.2 => 16.10.2
react-native: ^0.61.2 => 0.61.2
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native: 0.60.5
The text was updated successfully, but these errors were encountered: