When I open my multi-project workspace, which uses Cocoapods, XCode asks if I want to convert the syntax to Swift 3. The problem is that I've already done this. I'm able to build my app with the deployment target set to 10.0.
So, why is it continuing to ask this question and how do I stop it?
I solved it by installing the beta version of Cocoapods: gem install cocoapods --pre
Related
tldr: Ruby is reporting an illegal instruction when I try to update my pod, maybe because I’m using two different versions of it.
I am not sure what my problem is, and I’ll happily add more information should it be helpful.
I got a new M1 Pro Mac and have been trying to get an XCode project (an iOS app) to work on it. It happily builds for my phone but fails to build for simulators. Based on this answer, I tried to update cocoapods and then the pods I’m using for my project (some of the Google Firebase pods). When I run pod update, I get the following result:
Update all pods
Updating local specs repositories
/Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36: [BUG] Illegal instruction at 0x0000000100224000
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
This is then followed by several hundred lines of reporting (saved here). It also saves a diagnostic report (here). I believe that both of these are red herrings, but I wanted to include them just in case.
My guess for what’s going wrong is that the library is 2.6.0, while ruby itself is version 2.6.8. Both of these are old, and they’re also different versions. I tried to update ruby, gem, and reinstalled cocoapods, but none of these changed these version numbers. Any help getting these versions updated would be appreciated.
My apologies for such an indirect question; if I were more sure what the problem was, I probably would have solved it.
If you are on an M1 chip, uninstall the cocoapods package through gem (sudo gem uninstall cocoapods) and reinstalling it with homebrew (brew install cocoapods), this fixed my problem.
I believe the issue was that my newly updated ruby versions weren’t being copied to my homebrew path. This command (from this answer) ended up solving it!
PATH=/usr/local/opt/ruby/bin:$PATH
GEMSDIR=$(gem environment gemdir)/bin
PATH=$GEMSDIR:$PATH
export PATH
I have cloned a repo for an iOS and am having a problem building / running the app. stripe-ios was added to the project as a package dependency and I am receiving the following error when resolving package dependencies:
When first running the app, since it has been a while since using XCode, I did the following:
sudo gem install cocoapods to update cocoapods
pod install
pod update
I am currently using Xcode 11.4 on macOS Catalina 10.15.4
I thought maybe this had something to do with the command line tools so I updated that with no luck. I'm afraid I don't know what "tools version" and "root" are referring to. Any help here would be greatly appreciated.
After further research, I've concluded that this was a dumb question. Just had to update XCode > 12. Thank you, and sorry
I am trying to archive my flutter app to publish it to App Store Connect. Then I got this problem and I tried every single solution on the internet but nothing seem to work so I need help.
Here is the problem:
This will install all dependencies for iOS.
cd ios
pod install
You must see an output similar to this:
Analyzing dependencies
Downloading dependencies
Installing FMDB (2.7.5)
Installing Flutter (1.0.0)
Installing GoogleMaps (4.2.0)
If Xcode is opened when running pod install, you'll be prompted to either Keep Xcode Version or to Read From Disk.
Choose: Read From Disk.
Have you fulfilled all the requirements related with the app-delegate.. in the IOS section?
Because the problem seems to be connecting google maps flutter package with the IOS.
I solved the issue by double clicking and running Runner.xcworkspace instead of Runner.xcodeproj
I was actually trying to update ruby on my OSX 10.7.5 with RVM, and after typing in the following command:
rvm install ruby
I got the following response:
Searching for binary rubies, this might take some time.
Checking requirements for osx.
Installing requirements for osx.
Updating system.......
Error running 'requirements_osx_brew_update_system ruby-2.0.0-p247',
please read /Users/username/.rvm/log/1381215459_ruby-2.0.0-p247/update_system.log
Requirements installation failed with status: 1.
Then, when I checked out the update_system.log, it showed me the actual code of a function called requirements_osx_brew_update_system(), which contained the following error message:
Xcode version older than 4.6.2 installed, download and install newer version from:
http://connect.apple.com
After installation open Xcode, go to Downloads and install Command Line Tools.
Then I proceeded to find an update for Xcode, but only found the latest Xcode 5.0, which is apparently incompatible with my OSX 10.7. Although ultimately my goal is to update ruby and install rails, which I'm sure there are many other ways to do, I'd still like to find out if I could possibly install Xcode 4.6.2 on my OSX 10.7.
UPDATE: Sorry folks, apparently my version of XCode is v4.6.1 so updating the command line tools will not work in all cases (I know for a fact it doesn't work if you're on XCode v4.3.3). YMMV
I ran into the same issue trying to do an rvm install. I got an error telling me that I needed XCode 4.6.2 or later.
Turns out all it needed was the latest version of the XCode command line tools. I followed the instructions for upgrading my command line tools from this macports article:
open the Xcode application
go to the Preferences window
open the Downloads section
click the Install button next to "Command Line Tools"
After doing this I was able to run my rvm install command and it didn't complain about upgrading XCode anymore (and finished successfully).
It seems you're going to have to install under Xcode 5. So go to https://developer.apple.com/downloads/ and log in with your developer ID to get to the older versions. There should be a 4.6.3 that you could potentially download, or even 4.6.2.
Or you could upgrade your OSX to 10.8.
Whichever you prefer.
I can't give you a direct link to it, since you need your developer information to log in yourself. But all the downloads you need are in the link provided above once you log in.
Open xcode and update it via the app store.
Then
xcode-select --install
This will install xcode via the command line
I installed the most recent Monodevelop (3.0.1) I could find and installed Monodevelop but when I double click on an xlb file I see the following error:
error updating Objective-C type information. operation is not supported
This is a bug that was fixed in MonoDevelop 3.0.2, please update.
3.0.2 seems to have the same problem once you install but the problem seems to go away after MonoDevelop and XCode relaunched again.