TheAlphamerc / flutter_twitter_clone

Fully functional Twitter clone built in flutter framework using Firebase realtime database and storage
MIT License
3.94k stars 1.1k forks source link

ios pod install error #273

Closed superClown closed 2 years ago

superClown commented 2 years ago

hi,When I execute pod install, I receive the following error message. My current Ruby version is 3.0.0. Is it due to different versions of Ruby?

Invalid plugin specification: EXCLUDED_ARCHS[sdk=iphonesimulator]=i386 Invalid plugin specification: EXCLUDED_ARCHS[sdk=iphoneos]=armv7 Invalid plugin specification: DART_DEFINES=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==

[!] Invalid Podfile file: no implicit conversion of nil into String.

from /Users/kaka/open_sources/flutter_twitter_clone/ios/Podfile:57

-------------------------------------------

unless File.exist?(copied_framework_path)

   FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)

end

-------------------------------------------

TheAlphamerc commented 2 years ago

Can you try to remove podfile.lock and then try to install pods ?

breezybaldwin commented 2 years ago

Same error. Getting this still after removing the podfile.lock file

superClown commented 2 years ago

Can you try to remove podfile.lock and then try to install pods ? still the same error

MacBook-Pro ~/open_sources/flutter_twitter_clone/ios rm -rf Podfile.lock MacBook-Pro ~/open_sources/flutter_twitter_clone/ios pod install Invalid plugin specification: EXCLUDED_ARCHS[sdk=iphonesimulator]=i386 Invalid plugin specification: EXCLUDED_ARCHS[sdk=iphoneos]=armv7 Invalid plugin specification: DART_DEFINES=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==

[!] Invalid Podfile file: no implicit conversion of nil into String.

from /Users/kaka/open_sources/flutter_twitter_clone/ios/Podfile:57

-------------------------------------------

unless File.exist?(copied_framework_path)

   FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)

end

-------------------------------------------

TheAlphamerc commented 2 years ago

Ok, let's try to remove podfile and then run flutter pub get and ios pod install.

superClown commented 2 years ago

Ok, let's try to remove podfile and then run flutter pub get and ios pod install.

It's work, thank you.