emostar / flutter-libphonenumber

libphonenumber plugin for Flutter
MIT License
47 stars 47 forks source link

Failing to build IOS app #58

Open ManindraDeMel opened 2 weeks ago

ManindraDeMel commented 2 weeks ago

Failed to build iOS app Semantic Issue (Xcode): 'init' is unavailable /Users/XXXX/.pub-cache/hosted/pub.dev/libphonenumber-2.0.2/ios/Classes/LibphonenumberPlugin.m:15:52

No Issues with Android build

khalilyamoun commented 2 weeks ago

Our team is experiencing the same exact issue.

Nahrawene-ben-hmida commented 2 weeks ago

I also had the same issue with building the iOS app using libphonenumber 2.0.2

azizsoule commented 2 weeks ago

Hello ! Our team experienced the same issue. The underlying ios library used by this plugin has been updated yesterday from version 0.9.9 to 1.2.0 (1.2.0 seems to contains breaking change). See libPhoneNumber-iOS cocoapods page. As a workaround to fix the issue, you can pin the dependency to version 0.9.9 to keep your process working. You can do that by adding this line at the end of your flutter project Podfile in the ios folder : pod 'libPhoneNumber-iOS', '0.9.9'

azizsoule commented 2 weeks ago

I have also submitted a fix to the plugin directly but as i said in the PR description, we should implement a newer version version of the plugin using the latest version of libPhoneNumber-iOS. Link tot the PR

brunosp15 commented 2 weeks ago

Same problem here. Since yesterday my github action API is breaking. iOS because of libphonenumber and android because of camera_android_camerax.

unknownaloy commented 2 weeks ago

Hello ! Our team experienced the same issue. The underlying ios library used by this plugin has been updated yesterday from version 0.9.9 to 1.2.0 (1.2.0 seems to contains breaking change). See libPhoneNumber-iOS cocoapods page. As a workaround to fix the issue, you can pin the dependency to version 0.9.9 to keep your process working. You can do that by adding this line at the end of your flutter project Podfile in the ios folder : pod 'libPhoneNumber-iOS', '0.9.9'

I've tried doing this at the end of my Podfile I added the line

end pod 'libPhoneNumber-iOS', '0.9.9'

This is the version I'm using on my pubspec.yaml

libphonenumber: ^2.0.2

CarlosMoraRoa commented 2 weeks ago

Hello ! Our team experienced the same issue. The underlying ios library used by this plugin has been updated yesterday from version 0.9.9 to 1.2.0 (1.2.0 seems to contains breaking change). See libPhoneNumber-iOS cocoapods page. As a workaround to fix the issue, you can pin the dependency to version 0.9.9 to keep your process working. You can do that by adding this line at the end of your flutter project Podfile in the ios folder : pod 'libPhoneNumber-iOS', '0.9.9'

This solution worked for me!

azizsoule commented 2 weeks ago

Hello ! Our team experienced the same issue. The underlying ios library used by this plugin has been updated yesterday from version 0.9.9 to 1.2.0 (1.2.0 seems to contains breaking change). See libPhoneNumber-iOS cocoapods page. As a workaround to fix the issue, you can pin the dependency to version 0.9.9 to keep your process working. You can do that by adding this line at the end of your flutter project Podfile in the ios folder : pod 'libPhoneNumber-iOS', '0.9.9'

I've tried doing this at the end of my Podfile I added the line

end pod 'libPhoneNumber-iOS', '0.9.9'

This is the version I'm using on my pubspec.yaml

libphonenumber: ^2.0.2

Did it work ?

unknownaloy commented 2 weeks ago

Hello ! Our team experienced the same issue. The underlying ios library used by this plugin has been updated yesterday from version 0.9.9 to 1.2.0 (1.2.0 seems to contains breaking change). See libPhoneNumber-iOS cocoapods page. As a workaround to fix the issue, you can pin the dependency to version 0.9.9 to keep your process working. You can do that by adding this line at the end of your flutter project Podfile in the ios folder : pod 'libPhoneNumber-iOS', '0.9.9'

I've tried doing this at the end of my Podfile I added the line end pod 'libPhoneNumber-iOS', '0.9.9' This is the version I'm using on my pubspec.yaml libphonenumber: ^2.0.2

Did it work ?

No, it didn't work for me

I'm also running flutter 3.24.1

azizsoule commented 2 weeks ago

Hello ! Our team experienced the same issue. The underlying ios library used by this plugin has been updated yesterday from version 0.9.9 to 1.2.0 (1.2.0 seems to contains breaking change). See libPhoneNumber-iOS cocoapods page. As a workaround to fix the issue, you can pin the dependency to version 0.9.9 to keep your process working. You can do that by adding this line at the end of your flutter project Podfile in the ios folder : pod 'libPhoneNumber-iOS', '0.9.9'

I've tried doing this at the end of my Podfile I added the line end pod 'libPhoneNumber-iOS', '0.9.9' This is the version I'm using on my pubspec.yaml libphonenumber: ^2.0.2

Did it work ?

No, it didn't work for me

I'm also running flutter 3.24.1

Did you tried to run pod install --repo-update after you added the line to your Podfile ?

ManindraDeMel commented 2 weeks ago

Hi everyone, i found it easier to just switch to the more actively maintained https://pub.dev/packages/flutter_libphonenumber (flutter_libphonenumber). Its a reasonably simple migration. They mention this exact issue in their changelong

unknownaloy commented 2 weeks ago

pod install --repo-update

My problem is from somewhere else, and I am getting other errors. Thanks for the help

azizsoule commented 2 weeks ago

Hi everyone, i found it easier to just switch to the more actively maintained https://pub.dev/packages/flutter_libphonenumber (flutter_libphonenumber). Its a reasonably simple migration. They mention this exact issue in their changelong

I agree with you @ManindraDeMel. It's another solution 💙 !