问题
I'm fairly new to programming. I am trying to install Firebase and the Facebook iOS SDK into my app to allow for Facebook authentication. I have already installed the necessary pod files(FireBase) and Frameworks (FBSDK) on to my project. I am trying to build the app now but I come across the following error.
/Users/JuanPa/Library/Developer/Xcode/DerivedData/jps-showcase-dytvwqtvwsggladxlmwwyoflurwt/Build/Products/Debug-iphonesimulator/jps-showcase.app/Frameworks/GTMSessionFetcher.framework: No such file or directory
I have already tried:
- Updating my Cocoapod
- Updating the Firebase Pods
- Deleting my .xcworkspace and creating it again
- Deleting my derived data
And some other things, but those are the main ones, and nothing has worked. I guess it really comes down to the GTMSessionFetcher.framework
not being found? I searched into my Project's Pods directories and found the GTMSSessionFetcher > Source > and found the files in the picture below.
Pods directory:
Can anyone help, please?
回答1:
I got it working. After an entire day of dealing with this, I ended up just restarting my project from scratch but in the process I found some things that I may have done wrong which may have led to my issue.
Possible errors were -
- I had changed the bundle i.d after I had already built the app.
- I created a Framework file within the project name folder but not directly under the entire project, perhaps this is why it could not find the ...Debug-iphonesimulator/jps-showcase.app/Frameworks/....
3. Did not include the FBSDK folder path in my Project > Build Settings > Framework Search Paths.
Hope this helps.
回答2:
For me it was because I was using the Facebook Swift SDK and I forgot to uncomment the
use_frameworks!
statement in my Podfile.
来源:https://stackoverflow.com/questions/42474586/debug-iphonesimulator-gtmsessionfetcher-framework-swift-no-such-file-directory