please help me, i try to upgrade onesignal_flutter : ^3.5.0
Issue Xcode :OneSignal/OneSignal.h file not found
Note :
Flutter version 2.10.5
OneSignal_flutter : ^3.5.0
Pod Version 1.8.4
Xcode version 13.2.1
Step to reproduce :
-.https://documentation.onesignal.com/docs/flutter-sdk-setup
Pod deintegrate
rm -rf Podfile.lock
flutter clean & flutter pub get
Pod Install
Run XCode, and show issue
Showing All Errors Only
.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-3.5.0/ios/Classes/OneSignalPlugin.h:29:9: 'OneSignal/OneSignal.h' file not found
Please Help me Guys, Thank u
Step to reproduce :
-.https://documentation.onesignal.com/docs/flutter-sdk-setup
Pod deintegrate
rm -rf Podfile.lock
flutter clean & flutter pub get
Pod Install
Run XCode, and show issue
Related
I am very new to Apple and app programming so please forgive me if I am not asking my questions in the perfect "format" that you might be expecting...
I bought my MacBook Air running on M1 chip just few days ago and would like to program with Xcode and React Native. As I do the common command "npx react-native init AwesomeProject" I got into the error which I saw quite some other people also run into:
error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template.
I tried all of the suggestions available on other posts (assuming I am understanding the remedies correctly and making the changes accordingly) but none seem to work for me.
I tried also the default suggested solution which is:
Please try again manually: "cd ./AwesomeProject/ios && pod install".
And I seem to get something different from others, which is:
Analyzing dependencies Fetching podspec for DoubleConversion from
../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec
Fetching podspec for RCT-Folly from
../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec
Fetching podspec for glog from
../node_modules/react-native/third-party-podspecs/glog.podspec
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.1/lib/ffi/library.rb:275: [BUG]
Bus Error at 0x0000000102a08000 ruby 2.6.3p62 (2019-04-16 revision
67580) [universal.arm64e-darwin20]
and then
You may have encountered a bug in the Ruby interpreter or extension
libraries.
Is it something to do with my Ruby interpreter? If yes, what are the commands I could use to solve the issue???
https://github.com/CocoaPods/CocoaPods/issues/10349#issuecomment-849468291
brew install cocoapods
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
In my case, need to restart my terminal before execute pod install. Monterey + M1.
The top answer doesn't work for me on my MBP M1 so I fixed the issue this way :
Make sure you have opened project.xcworkspace and not the project.xcodeproj
Open the workspace file with xcode with clicking on it then go to File -> Workspace Settings ... -> Build System -> Legacy Build System
Select the project file then the Target then go to Build Settings Tab and Search Paths
Double click on Library Search Paths Debug and move the $(inherited) to the bottom of the list
Do the same for the Release .
Then Build Again and you're good to go .
If you still get any errors run these commands in the ios folder of the react native project and do the above steps again and it will build successfully.
rm -rf ~/Library/Developer/Xcode/DerivedData/
pod deintegrate
pod install
If you are facing this issue in Mac Big Sur, reinstalling CommandLineTools can fix this issue.
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
Hello i updgraded my flutter version(1.17.4 to 2.0.0) and i was working in my proyect normally and this issue showed up. but i don't know how i can fix it.
try to use a sudo flutter doctor -v or reinstall your flutter version.
For MacOS : https://flutter.dev/docs/development/tools/sdk/releases?tab=macos
Problem:
Not able to build the project both using xcode and ionic cli, I do get the below error.
ld: library not found for -lAeroGear-Push clang: error: linker command failed with exit code 1 (use -v to see invocation)
What I am trying to do:
For push notification, I am using aerogear cordova plugin, it works fine in Android but in iOS I do face lot of issues, Is there any solution for this?
Is there any other way to implement a push notification in Ionic 3?
I ran into the same trouble, it was just the pod dependencies that were not installed :
Make sure cocoapods is installed. This command should display the version if it is installed :
pod --version
If cocoapodsis not installed, install it.
sudo gem install cocoapods
install pods dependecies :
cd ./platforms/ios
pod install
Everything should work fine now :
cordova build ios
I got this issue several builds and weeks after I removed cordova-plugin-googlemaps which uses cocoapods. I resolved it by going to the platforms/ios directory and running the command pod install. After getting a message that there were no dependencies, I closed XCode, re-ran the Ionic build command and opened the XCode workspace file.
The following build worked.
(Ionic v4)
I use xcode 7.2 and today I finished a project and wanted to open another one. I made a new project an made pod init + pod install for swiftyJson and Alamofire and try to run it. I got 19 errors that the pod is unrecognized but I can see the pods in the project files. I asked a friend to open the project on his computer and it runs. The old projects run 100% fine.
How to solve this?
Maybe check your CocoaPods installed version with pod --version. 1.0.0 was released today and may help! I was running into issues with MagicalRecord on the 1.0.0 pre releases yesterday and had to uninstall and then sudo gem install cocoapods -v 0.39.0.
Also, I'm covering some CocoaPods topics here in the near future.
I'm trying to install cocoapods and it always fail at 'Setting up CocoaPods master repo' with below error code:
[!] /usr/bin/git clone 'https://github.com/CocoaPods/Specs.git' master --depth=1
sh: line 1: 8018 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find git 2> /dev/null
git: error: unable to find utility "git", not a developer tool or in PATH
I've tried all the suggestions on StackOverFlow like uninstall and re-install cocoapods or rm -fr ~/.cocoapods/repos/master but it still fail.
I'm using xCode 6.1.1 with the newest Command Line Tool on Yosemite 10.10
After a few days going crazy with it. I found a workaround to resolve this problem. It's a workaround because I don't know the root cause and I have to repeat these steps every time I want to do command relates with cocoapods.
Seems like the PATH variable for cocoapods has been changed in Yosemite 10.10, so you need to fix the PATH for cocoapods to understand it.
First, I have to use this command:
sudo rm -fr ~/.cocoapods/repos/master
Then this:
pod setup
And this:
export PATH="/usr/local/git/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:$PATH"
After that, I could use 'pod setup', 'pod install', 'pod search',... normally as I did before.
Does anybody know how to completely resolve this problem? Because everytime I want to update the pods, I have to repeat those steps above
I was able to fix this by running in term:
gem update
pod install