iOS error: 'WebRTC/WebRTC.h' file not found #1026
-
Just want to summarise all solutions of this error (and close relevant issues #755, #966, #773, #713, #892). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
ReasonSo the reason of this error is actually this warning:
SolutionAdd in file #...
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
# snippet begin
if target.name == "WebRTC-SDK"
target.build_configurations.each do |build_configuration|
build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = '$(inherited) i386'
end
end
# snippet end
end
end NoteFor sure, this error could be resolved in different ways. Provided in solution way is just analog what Flutter does for Flutter plugins. But because WebRTC-SDK technically is not a Flutter plugin, then this must be done manually. If someone would like to explain why XCode wants to build i386 architecture, then welcome in the comments 😉. |
Beta Was this translation helpful? Give feedback.
-
This did not resolve my issue, which was building using "flutter build ipa". I fixed it thusly.... (seems webRTC doesn't support arm7, so wouldn't be possible to build for that) |
Beta Was this translation helpful? Give feedback.
-
Raised back with Flutter 3.13.6 for "flutter build ipa". |
Beta Was this translation helpful? Give feedback.
Reason
So the reason of this error is actually this warning:
Solution
Add in file
./ios/Podfile
next snippet: