Open mashegoindustries opened 3 months ago
I'm running into this too. Seems unusual since we've been using libphonenumber_plugin v0.3.3 for months. Any ideas for a work around?
Looks like it might be similar to https://github.com/natintosh/plugin_libphonenumber/issues/29
PhoneNumberKit package released version 4.0 earlier today, which introduced a breaking change renaming the API PhoneNumberKit to PhoneNumberUtility
Locking PhoneNumberKit to v3.8 works for now.
I added this in my target 'Runner' do
block:
# Revert breaking API change in 4.0
pod 'PhoneNumberKit', :git => 'https://github.com/marmelroy/PhoneNumberKit.git', :commit => 'c107075aa8d394be7aced273a46e944afe8b321b'
Here is my result after locking PhoneNumberKit to v3.8
Running pod install... 173.2s
Running Xcode build...
Xcode archive done. 223.5s
Failed to build iOS app
Error (Xcode): Undefined symbols:
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Encountered error while archiving for device.
same issue
You can edit libphonenumber_plugin.podspec:
s.dependency 'PhoneNumberKit', '~> 3.6'
Xcode build done. 66.2s Failed to build iOS app Swift Compiler Error (Xcode): Cannot find type 'PhoneNumberKit' in scope /Users/xxxxx/.pub-cache/hosted/pub.dev/libphonenumber_plugin-0.3.3/ios/Classes/SwiftLibphonenumberPlugin.swift:6:24
Swift Compiler Error (Xcode): Extra argument 'phoneNumberKit' in call /Users/xxxxx/.pub-cache/hosted/pub.dev/libphonenumber_plugin-0.3.3/ios/Classes/SwiftLibphonenumberPlugin.swift:127:82
Encountered error while building for device.