xcode library file's header not found inside react native plugin - xcode

I'm developing a ios app with use of react native npm plugin and pod files
I have installed pod package using "pod 'IBMMobileFirstPlatformFoundationJSONStore'" and also installed plugin and manually configure the project to the application
My problem is installed ios application of the plugin requires IBMMobileFirstPlatformFoundationJSONStore as the header
I have looked into several suggestions related to the topic but could resolve it yet
Please help
Thanks in advance

I could find a solution
I have added "use_frameworks!" on top of the plugin's pod file and it worked fine

Related

How can I use Swift Package Manager (SPM) and cocoapods together in one project?

I have an existing project which uses Cocoapods, but I would like to switch to SPM; unfortunately I still have dependencies which aren't available in SPM.
Now I would like to move as many dependencies as possible over to SPM and keep the others in Cocoapods as long as necessary - is this possible? Having both, Cocoapods and SPM?
I just tried CocoaPods with SPM on my iOS project and it works fine.
I'm adding Firebase and other Google libs using CocoaPods and the rest using Swift Package Manager.
When adding SPM dependency, put checkmark on your project(s) and not on the Pods project.
Xcode 11.5,
CocoaPods 1.9.3.
After trying it out I found you can actually have a SPM + Cocoapods to play nice. You install your SPM library on the .xcodeproj while you develop on the .xcworkspace. It all works (at least so far for me lol).
If you are using CI, or you launch manually from xcodebuild command some tweaks with the -clonedSourcePackagesDirPath flag
I have had used swift package manager at the beginning and added 4 packages in my project. When I had to integrate admob sdk. I added cocoapod to my project.
but after open the .xcworkspace file. the packages status are display as Missing. I have to add them from SPM one by one. after all 4 packages were added again. the project can be built and executed again.
Considering all the pros and cons, I found it suitable to use CocoaPods as SPM is still at a very nascent stage and not all libraries support it.
Please go through the blog written by Darshan Patel by https://blog.kiprosh.com/preferable-dependency-manager-swift-package-manager-spm-or-cocoapods/ for more details.

Link a podspec framework with a framework that's defined in the Podfile

I have some code which is defined in a podspec. Lets call it the Plugin. The project imports the Plugin in the Podfile as a development pod.
pod 'Plugin', :path => 'path/to/podspec'
The project also depends on Firebase. That's also defined in the Podfile.
pod "Firebase"
Now, I would like to be able to access Firebase from inside my Plugin i.e. I would like to be able to call Firebase methods from both my main project and the Plugin.
Is this possible by manually changing the Build Settings in the Pods project?
Background:
The reason I want to do this is because Firebase is distributed as a framework - the source isn't available. When I add a dependency to Firebase in the plugin podspec, there are header not found errors. I've contacted the developers of Firebase and this is a known issue that they won't fix. As a workaround, I downloaded the Firebase frameworks and added them to the podspec using the vendored_frameworks command and this works. But it causes all sorts of headaches when I try to import other pods that also depend on Firebase.

Nativescript error require nativescript-background-http module

I'm using Telerik AppBuilder, trying to import nativescript-background-http module in my app and get error Module "nativescript-background-http" not found. When i'm looking for it in Properties => Dependencies, it is present in installed NPM Packages. Can i make smth with it?
It appears that this is an issue in desktop appbuilder client. It can be fixed following the next steps:
Remove the dependencies entries from the configuration file and save
your project, commit if necessary
Open your Telerik Platform account
Locate the project in the web portal and open it
Open Properties > Dependencies
Install the plugin(s) from the Marketplace
Save the project
Open the project from your preferred AppBuilder client
Hope it will be fixed in the next versions.

CordovaLib missing with Phonegap2.0.0

I am learning phonegap thru online tutorials.
I was creating facebook integration dummy app in xcode using phonegap by following step by step tutorial given at https://github.com/davejohnson/phonegap-plugin-facebook-connect
I was able to setup everything but one step where I was asked to add CordovaLib class path to XCODE was not working for me, I tried searching CordovaLib with downloaded and extracted phonegap(2.0.0) but couldn't find same.
At last, after spending good amount of time on google I could get CordovaLib from GITHUB and able to compile my project and make it work.
My question is, if CordovaLib is must for phonegap integration with Xcode, why is it not shipped with phonegap download ?
What is the best way to get CordovaLib in future for newer phonegap versions ?
There is no need anymore.
Note: Starting with Cordova 2.2, the project will have a copy of CordovaLib within it instead of having a dependency on the copy of CordovaLib from your Cordova installation.
guide_getting-started_ios

BWToolkit and xcode 3.2.1

I have problem with BWToolkit and XCode. For some reasons Xcode not recognize bwtoolkit framework. IB plugin working fine. I did same steps as described on bwtoolkit site. I did:
Download latest bwtoolkit from http://www.brandonwalkin.com/bwtoolkit/
Add BWToolkitFramework.framework to Linked frameworks
Add BWToolkitFramework to copy target
Add "#import <BWToolkitFramework/BWToolkitFramework.h>" to my class
Got "not such file" build error for BWToolkitFramework/BWToolkitFramework.h
I think it related to Xcode version as I remember it worked on prev Xcode version and when I downloaded Hellium project which used BWtoolkit and build it then no errors, I tried copy most of project settings from helium to my project but result the same(not found build errors)
My env:
Xcode 3.2.1
Snow Leopard
Thanks
Did you try adding a Framework Search Path to the build settings so Xcode knows where to look for it?
To do this, open the project or target settings, and add a path to the framework in the Framework Search Paths section. Make sure you're adding it to All Configurations.
Fixed. Problem was in build settings, not sure what exactly as I'v changed many of them

Resources