Hey!
Thanks for the awesome effort getting ICU on CocoaPods :) -- I tried installing this on a project and when building, and I get the following warnings:
warning: [CP] Unable to find matching .xcframework slice in '/Users/kerrmarin/Developer/02-KERR/Test/Pods/../../icu4c-iosx/product/frameworks/icudata.xcframework icudata library ios-x86_64-simulator ios-arm64' for the current build architectures (arm64).
warning: [CP] Unable to find matching .xcframework slice in '/Users/kerrmarin/Developer/02-KERR/Test/Pods/../../icu4c-iosx/product/frameworks/icui18n.xcframework icui18n library ios-arm64 ios-x86_64-simulator' for the current build architectures (arm64).
warning: [CP] Unable to find matching .xcframework slice in '/Users/kerrmarin/Developer/02-KERR/Test/Pods/../../icu4c-iosx/product/frameworks/icuio.xcframework icuio library ios-x86_64-simulator ios-arm64' for the current build architectures (arm64).
warning: [CP] Unable to find matching .xcframework slice in '/Users/kerrmarin/Developer/02-KERR/Test/Pods/../../icu4c-iosx/product/frameworks/icuuc.xcframework icuuc library ios-x86_64-simulator ios-arm64' for the current build architectures (arm64).
They're not a big problem, however, I also get the following warnings and then error:
ld: warning: directory not found for option '-L/Users/kerrmarin/Library/Developer/Xcode/DerivedData/Test-dfmtaayewsbkhgaztpiotjisicck/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/icudata'
ld: warning: directory not found for option '-L/Users/kerrmarin/Library/Developer/Xcode/DerivedData/Test-dfmtaayewsbkhgaztpiotjisicck/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/icui18n'
ld: warning: directory not found for option '-L/Users/kerrmarin/Library/Developer/Xcode/DerivedData/Test-dfmtaayewsbkhgaztpiotjisicck/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/icuio'
ld: warning: directory not found for option '-L/Users/kerrmarin/Library/Developer/Xcode/DerivedData/Test-dfmtaayewsbkhgaztpiotjisicck/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/icuuc'
ld: library not found for -licudata
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I can get over it by linking the frameworks manually in the build phase, but I thought it would be better if it was possible to do this by updating the pod spec, or including something else on the podfile.
Unrelated, but I also added:
post_install do |installer_representation|
project = installer_representation.pods_project
project.targets.each do |target|
if target.name == "icu4c-iosx"
target.build_configurations.each do |config|
target.build_settings(config.name)['VALID_ARCHS'] = "arm64 X86_64"
end
end
end
end
to my podfile, so I didn't have to do the steps in the troubleshooting after each pod install. I think this can be avoided by adding:
s.pod_target_xcconfig = { 'VALID_ARCHS' => 'arm64 X86_64' }
to the podspec though. I see that a similar line is currently commented out, so I suspect there's a reason not to include it?