FBDialogClosePNG.h not found in Facebook iOS SDK - ios

I've been trying to upgrade the Facebook iOS SDK used in my app. I cloned the Git repo and copied everything across to the directory containing the old version, and attempted to build the project. However I get the error "FBDialogClosePNG.h" file not found. I can't find that filename anywhere in the repo, or anywhere else through Google. It appears that it is meant to be a wrapper class for an image, since it appears to be called through the following line:
UIImage* closeImage = [FBDialogClosePNG image];
Does anyone know what we're meant to do with this?

Removing Xcode's DerivedData directory and the generated Pods directory fixed this for me.
/Users/{username}/Library/Developer/Xcode/DerivedData
/{YourProject}/Pods

there is a file in the path {FB_SDK_DIR}/scripts/image_to_code.py which will generate a bunch of files including FBDialogClosePNG.h.
To get this file, you need to compile facebook's source codes using src/facebook-ios-sdk.xcodeproj first, then locate the DerivedSources folder, put the whole folder into your project.
And you will need a to switch off a lot of compiler warning before your code could compile. Then you should good to go

For me, it was because my Facebook-iOS-SDK pod didn't get fully updated for whatever reason. I deleted the Facebook-iOS-SDK folder from my Pods folder, then ran pod update again, and now the problem is fixed.
I was getting lots of missing files: FBDialogClosePNG.h, FBLikeButtonPopWAV.h, FBLikeButtonBackgroundPNG.h, FBLoginViewButtonPNG.h, FBPlacePickerViewGenericPlacePNG.h and FBProfilePictureViewBlankProfilePortraitPNG.h.

Related

Swift iOS GoogleAPIClientForREST – Shell Script Invocation Error GTMSessionFetcher.framework: No such file or directory

I'm programming a Swift iOS app in XCode 9.2 (Dated, I know), and I've tried to integrate GoogleAPIClientForREST using Cocoapods. When you integrate GoogleAPIClientForREST (and possibly other pods, I don't know), it also downloads GTMSessionFetcher. Since the integration of the pods, the app won't run and gives this Shell Script Invocation Error:
/Users/username/Library/Developer/Xcode/DerivedData/Teachers_Assistant-aphjxihtqtmedabcymmxjlmxduzc/Build/Products/Debug-iphonesimulator/Teachers Assistant.app/Frameworks/GTMSessionFetcher.framework: No such file or directory
However, I can't open Teachers Assistant.app, as it's not a folder. GTMSessionFetcher.framework exists, but inside of the folder circled in red in the image at this link, not inside the .app file circled in blue.
I've tried the suggestions at this link, the suggestions in the question at this link, this link, this link, and this link. None of them have worked, though if you think that there was something I did wrong while trying to carry out those steps feel free to tell me.
All of my code is online at this repo, including the podfile. Thanks for the help!
Additional information: I plan on using the Google API to automate Sheets as a sort of storage information system to log attendance data and other miscellaneous information, if that helps at all.
Project's name should not contain special characters like ' or space, this could create some problems when Cocoapods try to link the libraries. I suggest you to change your project's name to TeachersAssistance (it worked for me). Here is the suggested steps:
Change project's name in the navigator. Xcode will recommend you to refractor the project, accept it:
Update podfile to point to new targets's names
Cocoapods will create a new workspace TeachersAssistance. Use it and delete the old one.
Remove Pods_Teacher__Assistance from new workspace. From now it will use Pods_TeachersAssistant.
Compile again and enjoy your project :)

Firebase file not found in Xcode Project

All of a sudden my Firebase has stopped working within my Xcode project.
I am getting two errors. In my Viewcontroller.swift:
Could not build Objective-C module 'Firebase'
and in my Firebase.h file:
'FirebaseAnalytics/FirebaseAnalytics.h' file not found"
I think I know what the problem is but I do not know how to fix it. My FirebaseAnalytics/FirebaseAnalytics.h file is called FirebaseAnalytics/FirebaseAnalytics.h.icloud and I do not know how to remove the .icloud extension.
My framework looks like.
My pod file looks like
So far I have tried: updating cocoapods and running pod install, and cleaning and rebuilding my project without any success.
Any tips or help is greatly appreciated.
It looks like you are using iCloud Drive.
A .iCloud extension means that iCloud have synced a placeholder file to you computer. A link to the original content stored in the cloud.
One scenario is that you tried to move a folder or the files to another location and this happened:
Your original file is gone. It’s gone from iCloud Drive, and it exists nowhere on your hard drive.
In their place, is a file named FILENAME.original-extension.icloud. This file, only a couple kilobytes in size, is the placeholder that OS X uses to pretend that the file existed on your system. Your original file is gone. It’s gone from iCloud Drive, and it exists nowhere on your hard drive.
Can OS X use them to download the originals from iCloud’s servers?
Nope, they are gone.
Though it can be possible to recover the files from iCloud by login into the web interface and go settings and then click on data & security.
If this is only pod module files related content, then I think you should delete your pod modules and install them again.
I have found that using iCloud drive together with projects where a lot of files are dependent on each other are risky business. If you need backup of your files I suggest using a version control system like GitHub.
I was able to fix the problem with removing all pod 'Firebase' and pods that have to do with Firebase and re running pod install which removed them from my app. Then I added them back and ran pod install which reinstalled them and they no longer has the .icloud extension and no longer gave me an error message

Getting 'Parse/Parse.h' file not found' error ONLY when archiving iOS app

Whenever I try to run my iOS app, it runs just fine, however when I archive it in order to submit a build to the app store, it throw this error:
'Parse/Parse.h' file not found`
When looking at the frameworks installed, it shows that Parse.h is indeed in the project folder:
I've tried all the different solutions (removing the frameworks and re-adding, adding the the project directory to Framework Search Paths, etc) suggested in other SO questions asking about this, and none have worked.
It's been suggested that Bolts.framework and Parse.framework may have duplicate Parse.h files, but I can't seem to find any duplicates. Also mentioned was the possibility of it being caused by an outdated Bolts.framework version, but I added the latest version and no dice. What gives?
try https://parse.com/questions/parseparseh-file-not-found
Hey, I solved it! I moved the parse.framework folder into a sup folder /projectname/framework/parse.framework/
after I moved the parse.framework folder back into Project folder (/projectname/parse.framework) Xcode was able to import the parse/parse.h file! :) Maybe that helps to! :)

Error: undefined is not an object (evaluating \'RCTWebSocketManager.connect\')

I m using React-native v0.10.0 and getting this screen:
Ok, So I figure out I m doing something wrong.
So I downloaded the code from this official React-native website for integrating React-native into existing app using pod.
The downloaded code uses React-native v0.2.1 and everything looks good there.
So I copied the whole code and overrode mine, but the red screen still appears. It left me just with the changes of the React-nativeץ
Is there any chance that the current version of React-native v0.10.1 doesn't work at all? :/
Thanks in advance!
I've had success by adding pod 'React/RCTWebSocket' to the Podfile as well and running pod install again.
This issue is caused because RCTWebSocketManager is not defined in your bundled app. The connect method of an object cannot be called on an undefined or null object.
To resolve this problem in iOS open Build Phases for your app target and ensure libRCTWebSocket.a exists in the Link Binary with Libraries section. If the item is not listed and not available for addition then add RCTWebSocket.xcodeproj to your app's Libraries folder in Xcode and try linking again.
This may seem rather trivial, but check to make sure that you have deleted react-native from the node_modules directory within the directory of react-native-router in the app's node_modules directory. If react-native is listed again the app will throw an error.
I have experienced this issue on a couple of occasions and this has been the cause for the error.

PhoneGap 2.9.0 is not working Build error

Hi i tried to download and run phoneGap-2.9.0 but it showing following error..please check the image for error
I saw several answers like
In your Target's Build Settings, find "Other Linker Flags"
Change "$(TARGET_BUILD_DIR)/libCordova.a"
To "$(BUILT_PRODUCTS_DIR)/libCordova.a"
i tried all these but its not working please refer my images
This happened with me also, and then i get to its fault. The problem is with the project folder, the project folder is not created properly.
In my case, i have some path issue, for which the application can't able to find the cordova lib folder.
it needed to recreated the whole project, then it worked fine for me.
Try to recreate the application folder, you can have a look into this while creating the application.

Resources