New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[version:0.6.10+hotfix.1] iOS error: 'WebRTC/WebRTC.h' file not found #713
Comments
We have the same error on 0.6.10+hotfix.1 |
I have the same issue when I want to run or build using flutter |
|
It doesn't work for me in xcode neither. I am using xcode 13. |
WebRTC-SDK doesn't have armv7 support, so just remove armv7 from project's architectures or try to rebuild WebRTC-SDK with armv7 support. |
I'm just curious, are there any modern smartphones on armv7 architecture? |
Starting from iOS 14, only apple devices with arm64 architecture have been supported, and the last armv7 device is iPhone 5/5s |
5s is 64bit :-) |
xcode -> pods -> flutter_webrtc and WebrtcSDK -> Build Setttings -> architectures(remove all and + arm64) -> Build Active architectures only (select yes profile and release) -> build ,it's ok |
Please exclude |
doesnt work on simulators |
@cloudwebrtc I want to support iPhone 5/5s what must I do?
@alexantropoff can you explain how? |
Wow this is super annoying. Thanks OP for the post, I downgraded to 0.6.7 and now it's building ios. |
@cloudwebrtc Can you help me? I want to support iPhone 5/5s and keep update my flutter-webrtc |
hey @sm2017 I am trying to use github actions to compile binaries for all platforms. At that time, I will add armv7 to the compilation step. This will solve your issue. If you are in a hurry, you can use the following steps to compile locally |
when is it planned? |
Any news? |
You can fix this issue by doing these following steps:
IMPORTANT: I think webrtc is not working on IOS simulator. I'm not sure. Your can run on real device. |
With the suggested workarounds it works in real device but there is no way to run it in iOS simulators. Do you have any suggestions for that? |
It looks nice to me, would you mind to explain what it does, and why it works, It's better to know the consequence before typing those command to me, thanks. |
@http600 does it work with iOS simulator also? |
@cloudwebrtc Did you know why I get the error while I'm run application via android studio for iOS but not in xcode? |
I'm still trying |
I've been trying all day to make this work until I found my workaround. My solution works fine with until this day. |
Thank you! that did the trick for me. |
Yes, it's working and if you are too lazy to copy from the picture: ` post_install do |installer| ` |
worked fine on my physical device. |
For the time being it's only working in physical devices but not in (IOS) emulators. |
@ShahanAhmedDev ok😊 |
This still causes a problem running on simulators on version 0.8.0. |
Seems like able to run on simulator using XCode... No changes needed. Very strange |
Any updates ? |
You can try the latest version 0.8.3 |
The only thing that does not work for me with the latest version 0.8.5 is installing on iOS simulator. After setting Complete post_install hook for reference: # ./ios/Podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# https://github.com/flutter-webrtc/flutter-webrtc/issues/713
if target.name == "flutter_webrtc" || target.name == "WebRTC-SDK"
config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
end
end
end
end |
Verified that the above post_install hook (ONLY_ACTIVE_ARCH = YES) is still needed for builds to succeed on iOS simulators using |
Let's assume that the issue is resolved. Fore more info/discussion welcome to released Q&A - #1026. |
When i try to build release on ios (Product -> archive), the build fails with
'WebRTC/WebRTC.h'
file not found error.When i downgrade the dependency to 0.6.7, it works without errors, but i need the changes in the latest version for improved iOS audio handling.
version that fails:
0.6.10+hotfix.1
version that works:
0.6.7
Oh and another thing that i noticed while running
pod update
is thatflutter_webrtc.podspec
still statess.version = '0.2.2'
for almost all the versions, it gets confusing sometimes to check if xcode is using the right version dependency or not 😅The text was updated successfully, but these errors were encountered: