I installed the latest version of React 0.63.2 and using XCode v11.6 and I noticed a couple things:
main.jsbundle does not exist and you have to create it first before entering the Terminal command: npx react-native run-ios.
If you make any code changes, the main.jsbundle is not updated when you run the Terminal command: npx react-native run-ios.
Should you be running the XCode project in Debug mode or Release?
Has anyone seen these issues with .63.2?
It seems that the entire problem revolved around my hosts file. I had set uncomment my localhost and it finally worked. I had commented it out a long time ago for my Parallels VM.
Related
I just recently updated my MacOS BigSur to 11.6 to accommodate the new iOS 15 release. I also updated my XCode to 13. To make sure my Flutter packages are using the most up to date version, I checked and confirmed that the package/s versions in pubsec.yaml is indeed the newest via pub.dev. I then updated Flutter, reinstalled Cocoapods and ran 'pod repo remove trunk', 'pod repo update' and 'pod update'. I then tried checking whether the pod packages are the most up to date. However, when I try visiting cocoapods.org via browser, I am getting an internal server error. How do I verify that I do have the most recent versions which are in sync with the version showing in pub.dev of Flutter? Is it correct to assume that the pub.dev build version showing for a specific package should be the same when I check the package in Pods of XCode?
FYI. The reason I am asking this is because I am getting a lot of build errors due to pods with deprecation errors. So I wish to rule out any version discrepancies before tshooting further.
Thanks in advance.
I'm not sure about the first problem, but for the problem "a lot of build errors due to pods with deprecation errors" I always use this steps to solve it.... try it might work for you too:
delete: podfile, pods folder, and podfile.lock
cd ios
pod install --repo-update (this will take time)
cd ..
flutter clean
flutter pub get
Thanks Remoo. Unfortunately your recommendation didn't work. What worked is: 1. Deleted my project. 2. Copied original saved copy fresh to MacOS. 3. Ran flutter clean and then flutter packages get and then in ios dir, did pod install. 4. Flutter run and flutter build ios --release were successful. 5. I just ran archive via XCode but still saw a lot of deprecation errors but it went through. Also performed Validate and Distribute. I will see if the app works on my iphone.
Recently I had tried adding the google_mobile_ads package to my flutter app. After deciding I didn't want them anymore I took them away, only to run into this error. Prior to the package, everything worked fine, but now I can't even run the project anymore. This is what Xcode tells me:
https://docs.google.com/document/d/13XrC2NTgQ87hlVCmLI2qiQTLhhD6vgMaQkz0ac_tQM0/edit?usp=sharing
What I've tried:
Flutter clean
Restarting Mac
Restarting Xcode and IDE
Changing simulators
Deleting iOS folder completely and rebuilding it
Any direction would be very helpful.
I am on Mac and I want to run my app on a USB-C connected Android device.
My first step is always to remove node_modules, hooks and platforms folders, aswell as package.lock.json file.
After that I run tns build android.
Once the build is completed I either run tns run android or start the application via nativescript sidekick.
But it always ends like this now:
Project successfully built.
Installing on device 5B24000362...
Successfully installed on device with identifier '5B24000362'.
Unable to apply changes on device: 5B24000362. Error is: Socket connection timed out..
Since I had this error already 2 days ago and could not continue working on the App, I updated all nativescript and angular dependencies following this upgrade instructions.
After that update, the app worked again.
But now after a few hours I get the same error again (same app).
I even pushed the app to a git repository after it worked, and recloned it now, does not work.
If you have nativescript-plugin-firebase installed. Just update it with:
$ tns plugin update nativescript-plugin-firebase
I ran into this same issue. Interestingly, in my case, it was because the emulated device did not have enough storage to install the app. As soon as I deleted some other builds off of it, it worked.
Make sure you are using the latest NativeScript tooling, not only the dependencies. You can install the latest CLI by executing npm i -g nativescript.
If the application is not started at all, you can check this answer to a similar issue in NativeScript CLI GitHub repository.
I finally got this working by removing admob from node_modules\nativescript-plugin-firebase\platforms\android\include.gradle
Line to take out:
When building a react-native app, the build succeeds, but Xcode logs more than 100 issues in the buildtime log. Is this normal?
All I did was:
Installed Xcode (9.2)
brew install node (9.9.0)
brew install watchman (4.9.0)
npm install -g react-native-cli (2.0.1)
cd ~/Development && react-native init Test
Open ios/Test.xcodeproj and hit the Run button (iPhone 8 simulator)
Again - the build succeeds. But all the issues in the logs concerns me and I was not able to find others with the same issue.
Those warnings are not a big issue. The various RCT projects were created with an older version of Xcode. Xcode is suggesting you update the projects to Xcode's recommended settings.
To update to the recommended settings, select one of the Update to recommended settings warnings shown in your screenshot. A sheet will open. Click the Perform Changes button to update the project settings.
I am learning react-native from a Udemy course. I have followed the exact steps used by both my instructor as well as the RN documentation. However, I get 105 errors when I open in XCode (v6.4 on OSX 10.10.1). I tried targeting different builds, but to no avail. A few of the errors I get include
Expected '>'
Expected '}'
All the errors here seem to originate in the external files such as
RCTVibration.m
RCTAssert.h
And so on.
The build tools I used are the ones recommended by fb.
brew install node
npm install -g react-native-cli
react-native init AwesomeProject
cd AwesomeProject
react-native run-ios (Even tried opening it using Xcode in the finder)
On a side note, using Node v4.4.5, react-native cli 1.0.0, Homebrew 0.9.9.
Right up till I build the project, I encounter nothing unusual (Creating the project did take quite long and threw a few warnings at me.) Are there any dependencies I have failed to install? Help is appreciated!
EDIT: I either hadn't observed this before, or this appeared now. Here's the image.
From the React Native Getting Started prerequisites:
Xcode 7.0 or higher. Open the App Store or go to https://developer.apple.com/xcode/downloads/. This will also install git as well.
So you should update your XCode.