i have tried to integrate One-signal as per given documents on their site but when i install framwork through podfile , at this time i got 0 percent dependancy
so how to integrate proper way??? in ios Xcode 8.
i have tried this Steps:
Option A: Use CocoaPods (Recommended)
Setting up CocoaPods on your system if you don't have it already.
Make sure you have the latest 1.1.0 version by running pod --version from the terminal.
Run the following to upgrade sudo gem install cocoapods
1.1 Make sure your current Xcode project is closed.
1.2 Run pod init
1.3 Run echo "pod 'OneSignal'" >> Podfile
NOTE (React Native only) : Run echo "pod 'OneSignal', '~> 1.13.3'" >> Podfile instead.
1.3 Run pod install
1.4 Open the newly created .xcworkspace file.
https://documentation.onesignal.com/docs/ios-sdk-setup
I have noticed that the cocoaPods fails with iOS. I recommend doing the manual way.
Download the sdk from here:
https://github.com/OneSignal/OneSignal-iOS-SDK
Import the oneSignal.h and .m into your project.
Remember to go to capabilities and activate Remote notifications
Add this lines of code in your AppDelegate or wherever you would like to activate push notifications (Replace with your credentials):
self.oneSignal = [[OneSignal alloc] initWithLaunchOptions:launchOptions
appId:#"YOUR APP ID IN HERE"
handleNotification:nil];
Finally follow my question and you are ready to go. Good Luck!
https://stackoverflow.com/a/39135807/2551707
Related
I have a flutter project which is dependent on some firebase services like auth, db etc. It was working fine on mac mini (intel). But on my MacBook pro I can't build project for podfile error. It showing firebase issue. Any solution?
There is no direct solution for the same. But there is a work around for resolving the Podfile related errors. Follow the steps below,
Execute the below command to install ffi from the terminal,
sudo arch -x86_64 gem install ffi
Then in the iOS folder of Flutter project execute the below command to install the pods. You have to run this command every time a new Flutter project is created and if it needs firebase.
arch -x86_64 pod install
Finally run the application in the Android studio
I am trying to install firebase analytics in my react native application. For that I am following the link for documentation
https://enappd.com/blog/firebase-analytics-in-react-native-app/101/
My iOS deployment target is 9.0 in the xcode and also 9.0 in the Pods file. But when I tried to install the two plugins
yarn add #react-native-firebase/analytics
yarn add #react-native-firebase/app
I tried to do
cd ios && pod install
I got the error:
[!] CocoaPods could not find compatible versions for pod "RNFBApp":
In Podfile:
RNFBApp (from `../node_modules/#react-native-firebase/app`)
Specs satisfying the `RNFBApp (from `../node_modules/#react-native-firebase/app`)` dependency were found, but they required a higher minimum deployment target.
Then I googled this error none of them are working solution for me. I tried
rm Podfile.lock
pod install --repo-update
Still the same issue
Then I updated the deployment target to 10.0. Then it was installed successfully. But now I am not able to build the application for iOS because it is giving error
Typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')
This was happening in the Flipper library of the react native. Then I reverted back my code and now my deployment target is again 9.0 and I am stuck.
Please anyone can guide me to solve this issue.
I am new to IOS automation testing. I have to install appium for automation on actual physical device. I have followed a number of links but I am still confused. I have installed appium and xcode. But when I run appium inspector I always get error 'Could not launch Appium Inspector'. What could be the possible cause? Also can someone suggest a link which I can follow for appium set up on MAC.
Here's a very basic list of things you need to have to make Appium work for iOS:
It's helpful to use Homebrew to install some of these items.
https://brew.sh/
First you need to have ruby version 2.2 or higher to utilize the newest appium. I would suggest you use a ruby manager like RVM to install this Ruby.
\curl -sSL https://get.rvm.io | bash -s stable
Then install a ruby version above 2.2 (I personally default to 2.4.0):
rvm install 2.2.0
you can set a default rvm to use for convenience:
rvm default 2.2.0
If you don't set the rvm default you will have to use the "rvm use rubyversion" command every time you open a terminal.
Node.js: Essential, can not do without.
brew install node
(Note: DO NOT INSTALL WITH SUDO)
Appium Desktop: Convenient implementation of appium for building test cases. Uses a GUI and has inspector build in.
https://github.com/appium/appium-desktop
Appium CLI: command line Appium which is best for running multiple devices at once.
npm install -g appium
npm install -g appium-doctor
Check the Doctor: You can use appium doctor to diagnose what next steps you need to do next. Run it with the --ios or --android tags to find out what you need for each of these operating systems. You'll have to make adjustments to your .bash_profile so Appium can find your JDK folder among other things.
Authorize iOS testing on your computer:
npm install -g authorize-ios
sudo authorize-ios
Carthage: required to automate after Xcode 8
brew install carthage
brew update carthage
Hopefully this will help to diagnose what is going on with your set up. If you're using ruby to do your automation scripts don't forget to actually download the appium_lib gem:
sudo gem install appium_lib
Good Luck!
Check this out latest appium desktop :
AppiumDesktop1.1.0beta4 iOS setup - Inspector and Record the scripts,
Link : https://www.youtube.com/watch?v=2_xHmofGgUE
If you face any issue please comment it.
Can I Build a meteor android app in cloud 9.
meteor add-platform android
Because Im running on windows or should I install linux and run
curl https://install.meteor.com/ | sh
and build it locally.
If you want to build android app on Windows you need to be using the meteor 1.3 release beta which you can install by running meteor update --release 1.3-cordova-beta.5 in your project folder - Details on this release
Prior to 1.3 you will need to build the app on a linux machine
You can build a Meteor app on Cloud9 using any version of Meteor. See Meteor on Cloud9.
I searched and got answers on using CocoaPods but really i couldn't manage to use it because i didn't what they mean
1- Install CocoaPods 0.39.0 or later. -> i did install it using sudo command
"I stopped here, didn't know what to do"
2- In your Podfile, add use_frameworks! and pod 'RealmSwift' to your main and test targets.
3- From the command line, run pod install.
4- Use the .xcworkspace file generated by CocoaPods to work on your project!
sorry my question looks bad but it is my first time to ask a question here :)
Your list of steps is correct, and assuming CocoaPods installed correctly, you will then need to navigate to the directory of your .xcodeproj file.
In that directory, you can run the command pod init which will create a .podfile in the directory.
You can then continue onto steps 2-4.
However, as of writing this response, Realm's current release doesn't support Swift 2.1. We are actively working on an update for 2.1, which you can follow on this Github Issue.