Cocoapods Pod Packages Version Checking - Flutter - xcode

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.

Related

Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)

After updating flutter version from 1 to 2, got unresolveable errors, so deleted all flutter sdk and redownload it using this command
git clone https://github.com/flutter/flutter.git -b stable
After this i entered command flutter precache which started downloading Dart Sdk, after that it get crash always...
no matter which command i run flutter doctor or any other, it always starts with Building flutter tool... and then crash.
Also tried other related questions and their answers but no luck...
flutter precache command exceution Image
Flutter and Dart Installed Directory Image
Crash proper image
If you are facing this on the Mac OS BigSur, please install rosetta first.
To do so you can use the following command:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
It worked for me :).
Several packages are not yet fully updated for Flutter 2.0. So I recommend that you continue using Flutter 1.x until everything is resolved. The easiest way is to normally install Flutte 2.0 as if you were going to use it and then downgrade.
To download it, follow this tutorial here:
How to downgrade Flutter SDK (Dart 1.x)
When the flutter pub get fails to return the dependencies it gets stuck trying several times. And if you get a pub get via the interface you won't see any errors happening, so I recommend making flutter pub get.
Ok so i have filed this issue on flutter github.
You can checkout the link https://github.com/flutter/flutter/issues/78167
the answer they told me is: something in the certificate validation is broken on older Mac OS X versions.
Until they resolve issue for older versions of Mac OS. There are two possible solutions:
First is absolutely to upgrade Mac Version but if you have low Ram or Disk switch to solution no.2
Second solution is to downgrade flutter version.
Also like to point out that if you have installed flutter version 2, it won't downgrade to version 1 using command "Flutter Downgrade", atleast this was not working for me so i downloaded older version manually using this link: https://flutter.dev/docs/development/tools/sdk/releases?tab=macos
Try delete your flutter sdk folder and checkout it's again.
git clone https://github.com/flutter/flutter.git -b stable

Application won't start on simulators in Xcode 12

Please tell me, after upgrading to Xcode 12, simulators stopped running
There was an error 'in /Users/.../Pods/MobileVLCKit.framework/MobileVLCKit(VLCEmbeddedDialogProvider.o), building for iOS Simulator, but linking in object file built for iOS, file' /Users/.../Pods/MobileVLCKit /MobileVLCKit.framework/MobileVLCKit 'for architecture arm64'
I found on the Internet a solution to add arm64 to Excluded Architectures using the Any iOS Simulator SDK option, which I did.
Then the same error was only with the i386 architecture, I added it to the exceptions as well (for project purposes and Pods purposes)
Then the same thing with x86_64, added it too
After that the error 'Build input file cannot be found' came out /Users/...Library/Developer/Xcode/DerivedData/SWSTB-asdgdfgbgfbg.../Build/Products/Release-iphonesimulator/MYNAME.app/MYNAME'
I tried to clean DerivedData, but after that either the error was repeated
I don't know how to solve it
It runs fine on a real device, the problem is only with simulators
Updated Xcode to 12.01, updated cocoapods, updated mobilevlckit, error persists
Remove /Library/Developer (the one from root), or rename it and relaunch your Xcode.
or
cmd + shift + opt + k
or
pod update
The problem was with the pod MobileVLCKit.
The pod devs have added the necessary changes to work well with Xcode 12.x
It was necessary to update MobileVLCKit to version 3.3.15
I have not updated above 3.3.13, then I registered the command pod install --repo-update. After that, the repository with the pod was updated and it was possible to install the latest working version
I've an old project migrated to Xcode 12.4, cocoapods. Same situation. I've solved updating the Build Settings -> VALID_ARCH value with (both project and target section) :
$(ARCHS_STANDARD) i386
Build architecture only: YES
For your tries remember to removing Derived Data:
rm -rf ~/Library/Developer/Xcode/DerivedData

100+ buildtime issues on fresh react-native project

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.

React-native AwesomeProject buid failure

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.

Hockey Cocoa pod integration error - Resource not found

Yesterday my Xcode projects started failing with the following message:
error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script.
where "$RESOURCE_PATH" pointed to the hockey app pod.
I've tried:
pod install
completely removing cocoa pods integration and
re-integrating it with my projects
uninstalled cocoa pods from my
system and reinstalled
Nothing works. Has anyone had this issue or have any suggestions on how to resolve it?
Edit: This issue is now fixed in the latest CocoaPods version 1.0.0beta.6.
This is an issue with the latest CocoaPods prerelease version 1.0.0beta.5. It's being tracked here and a Pull Request with a fix has already been opened.
In the meantime, you can switch back to using the current stable version of CocoaPods, 0.39.0 or use the Podspec HockeySDK-Source instead.

Resources