I am building a flutter chat app,
here on running it on an ios device, I am getting the below error.
ld: building for iOS Simulator, but linking in dylib built for iOS, file '/Users/drole/Documents/chat/ios/Pods/AgoraRtcEngine_iOS/AgoraAIDenoiseExtension.framework/AgoraAIDenoiseExtension' for architecture arm64
What should I do to resolve the error, I've tried surfing on the internet but I don't get a proper solution.
in Podfile add this
post_install do |installer|
projects = installer.aggregate_targets
.map{ |t| t.user_project }
.uniq{ |p| p.path }
.push(installer.pods_project)
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
projects.each do |project|
project.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] =
'arm64'
end
project.save()
end
end
in Podfile add this or check this link https://github.com/mapbox/mapbox-gl-native-ios/issues/487#issuecomment-1163332686
post_install do |installer|
projects = installer.aggregate_targets
.map{ |t| t.user_project }
.uniq{ |p| p.path }
.push(installer.pods_project)
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
projects.each do |project|
project.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] =
'arm64'
end
project.save()
end
end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.