I am trying to compile and build the ReactNative project for IOS. I am now using XCode version 12.5 which is the latest at the moment. My ReactNative version is 0.59.10. Before I was compiling and building my project on XCode version 11.x and it was working fine. Then I installed the latest XCode version, 12.5. Then I deleted the node_modules folder and run the "npm install" again. When I opened the IOS project in the XCode and tried to build it, it is giving me the following error.
node_modules/react-native/React/../third-party/folly-2018.10.22.00/folly/dynamic.h:63:10: fatal error: 'boost/operators.hpp' file not found
#include <boost/operators.hpp>
^~~~~~~~~~~~~~~~~~~~~
When I built the project in the older version of XCode, it works fine. I looked up the solution online and it seems that that is because maybe the project is not using Podfile or Pods. In ReactNative version 0.59.10, it is not using Podfile or Pods to manage the dependencies. How can I build the project? Is upgrading the ReactNative only option? Is there any other solution?
Related
I just created a default project in Android studio and opened xworkspace from xcode. I successfully installed it on ios simulator. But after adding any package xcode gives the following error Parse issue Module 'package_name' not found. I could not run with any packages. For example catcher,flutter_chat_bubble,devicelocale. If I remove package it runs perfectly on ios simulator. I tried flutter clean , flutter pub get, pod install , pod update. After it gives me following message Pod installation complete... The podfile does not contain any dependencies. In xcode my IOS deployment target is the same as Podfile 12.0
Existing project working in Xcode 9.3 and suddenly giving error in Openpay Framework while run in Xcode 10 (not beta version).
My swift version is 4.2, if i changed to Swift 4 or Swift 3 then also same error.
I have tried following things but not worked..
pod file update
clean and build project
delete derived data and clean-build project
quit xcode. open again, clean and build.
sudo xcode-select -switch /Applications/Xcode.app
carthage update --platform iOS --no-use-binaries
You are adding Openpay.frameworkin your project (using the link from their readme). The framework is built using Xcode 9.4 - you can check it in Info.plist file inside framework (just open it as folder). Here you have several options - ask them to release new version or do it yourself - looks like it is open source library, so you can clone it and build the framework yourself using Xcode 10
When I ran flutter run command this error appeared.
I am trying to use a map_view.
My Xcode version is 9.2
In file included from
/Users/rsaivenkatesh/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.10/ios/Classes/MapViewPlugin.m:1:
/Users/rsaivenkatesh/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.10/ios/Classes/MapViewPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not found
#import
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone X.
I had a similar problem trying to include the audioplayer package
audioplayer-0.4.0/ios/Classes/AudioplayerPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not found
I thought I was up-to-date, but after I did a Flutter upgrade and then deleted Podfile, Podfile.lock and the Pods folder from my ios directory under my project (and ran flutter clean), I was finally able to build and launch to iOS. See https://github.com/flutter/flutter/pull/16273
I'm using Xcode 9.3 and Cocoapods 1.5.0
Flutter shows version 0.3.1 after upgrading.
Perhaps you need to flutter pub upgrade to make sure you have the latest dependencies.
I am able to run my React Native application in the simulator via Expo, but as soon as I try to build it with Xcode, I receive this error:
'SFSafariViewController' is only available on iOS 9.0 or newer (React
Native Build)
These are the steps I took to build.
Run npm run eject
Eject with 'ExpoKit' option
cd into the ios directory
Run pod install
Open up the xcworkspace file in Xcode
In both the project and the target, I changed the Deployment Target value to 11.0
Run the build to a iOS version 11 simulator
The build then fails with 7 of the above errors. I am using Xcode version 9.0, Pods version 1.3.1.
Any help would be greatly appreciated.
For me, the errors were coming from the "AppAuth" dependency.
I fixed this issue by setting the "iOS Deployment Target" of this package to iOS 9.0.
I have created a Cordova project using my mac and I added IOS platform tot he project (cordova platform add ios)
On adding plugins, phonegap-plugin-push plugin expects to use CocoaPods to manage tthe plugin. After adding the plugin and adding the Platfom, I build the project using the command cordova build ios
It looks like it is trying to build the CocoaPods project created when adding the platform and it is getting failed. Below is the error. It should build my Xcode project.
Error: /Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
Can anyone help me to build my IOS project.
My Cordova version is 6.4.0; My IOS version is 10.11.6; My Xcode version is 8.1
Thanks.