Skip to content
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

AgoraRtcKit/AgoraRtcEngineKit.h' file not found When running in iOS #727

Closed
devsideal opened this issue Jul 27, 2022 · 29 comments
Closed

AgoraRtcKit/AgoraRtcEngineKit.h' file not found When running in iOS #727

devsideal opened this issue Jul 27, 2022 · 29 comments
Labels
waiting for customer response waiting for customer response, or closed by no-reponse bot

Comments

@devsideal
Copy link

devsideal commented Jul 27, 2022

Describe the bug
Getting below error when running in iOS:

Lexical or Preprocessor Issue (Xcode): 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
/Users/macbook/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-5.3.0/ios/Classes/Base/RtcEnginePlugin.h:1:8

Lexical or Preprocessor Issue (Xcode): 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found
/Users/macbook/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_engine-5.3.0/ios/Classes/AgoraRtcEnginePlugin.h:1:8

Could not build the application for the simulator.
Error launching application on iPhone 11.

To Reproduce
Steps to reproduce the behavior:

  1. Create new flutter project
  2. Added agora_rtc_engine: 5.3.0 and run the flutter pub get
  3. Run the project on iOS
  4. Getting above given error

Smartphone (please complete the following information):

  • Device: iPhone11, iOS8.15.2]
  • Agora: agora_rtc_engine: 5.3.0
  • Flutter: 3.0.1
@littleGnAl
Copy link
Collaborator

@littleGnAl littleGnAl added the waiting for customer response waiting for customer response, or closed by no-reponse bot label Jul 28, 2022
@devsideal
Copy link
Author

I'm using Android Studio and trying to run on iOS Simulator, as you suggest i tried to run the command:

Macbooks-MacBook-Pro:flutter_agora_ex MyMac$ flutter build ios --no-codesign
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building com.devs.agoraex.flutterAgoraEx for device (ios-release)...
Running Xcode build...                                                  
 └─Compiling, linking and signing...                      1,285ms
Xcode build done.                                            8.1s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/kb/b1k1wt9j1fx7z3l4p_k8v_2h0000gn/T/flutter_tools.19fuOy/flutter_ios_build_temp_dirhjHI5x/temporary_xcresult_bundle

    ld: framework not found Pods_Runner
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ld: framework not found Pods_Runner
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    /Users/macbook/FlutterProjects/flutter_agora_ex/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'AgoraIrisRTC_iOS' from project 'Pods')
    /Users/macbook/FlutterProjects/flutter_agora_ex/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'AgoraRtcEngine_iOS' from project 'Pods')

    Result bundle written to path:
        /var/folders/kb/b1k1wt9j1fx7z3l4p_k8v_2h0000gn/T/flutter_tools.19fuOy/flutter_ios_build_temp_dirhjHI5x/temporary_xcresult_bundle

Error (Xcode): Framework not found Pods_Runner
Encountered error while building for device.

@github-actions github-actions bot removed the waiting for customer response waiting for customer response, or closed by no-reponse bot label Jul 28, 2022
@itskishankumar
Copy link

Facing the same issue

@Nitish145
Copy link

Any update regarding this issue? Facing the same.

@itskishankumar
Copy link

itskishankumar commented Jul 29, 2022 via email

@Khurshidddbek
Copy link

I am getting the same error in Flutter.

@Khurshidddbek
Copy link

@itskishankumar Did downgrading the sdk help you?

@devsideal
Copy link
Author

Looks like the issue with debug build, When I created profile build with the certificates using the command
flutter build ios --profile It's working

@itskishankumar
Copy link

itskishankumar commented Aug 1, 2022 via email

@dujinxin
Copy link

dujinxin commented Aug 2, 2022

Looks like the issue with debug build, When I created profile build with the certificates using the command
flutter build ios --profile It's working

y,the emulator can't

@Khurshidddbek
Copy link

Yes downgrading it made it work for me

Ok. Thanks bro. but it didn't work for me. I tried downgrading to 3.0.0 and 2.10.4.

@KestasVenslauskas
Copy link

Downgrading to 5.2.0 worked for me.

@littleGnAl
Copy link
Collaborator

littleGnAl commented Aug 2, 2022

Try adding the following line to your ios/Podfile file
https://github.com/AgoraIO/Agora-Flutter-SDK/blob/master/example/ios/Podfile#L56-L58

@DamilolaDami
Copy link

Looks like the issue with debug build, When I created profile build with the certificates using the command
flutter build ios --profile It's working

y,the emulator can't

hello what do you mean by this?

@PolischukIO
Copy link

Just try to run on real ios device, not emulator. It works for me

@DamilolaDami
Copy link

DamilolaDami commented Aug 5, 2022 via email

@PolischukIO
Copy link

On Fri, Aug 5, 2022 at 12:19 PM PolischukIO @.> wrote: Just try to run on real ios device, not emulator. It works for me — Reply to this email directly, view it on GitHub <#727 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQYYDYUAAC2CQ5UFBZ2CCLVXT2DHANCNFSM54ZETMXQ . You are receiving this because you commented.Message ID: @.>
On real device or shows black screen Remote view display Any idea why?

Maybe you have problems with your Agora account, check id and token of your agora app in your project.

@b4tchkn
Copy link

b4tchkn commented Aug 6, 2022

It worked in the following environment.

Flutter: 3.0.5
Xcode: 13.3.1
macOS: 12.4
Real Device: iPhone 12 mini, iOS 15.6

I couldn't work if only Real Device is changed to iOS Simulator iPhone 13, iOS 15.4 in the same environment.

@zhangtao7740
Copy link

Same problem can't work on iOS Simulator

@JSBmanD
Copy link

JSBmanD commented Sep 1, 2022

Same problem doesn't work on emulator. 5.2.0 and 5.3.0. Flutter 3.0.5.

@utkudenis
Copy link

Try adding the following line to your ios/Podfile file https://github.com/AgoraIO/Agora-Flutter-SDK/blob/master/example/ios/Podfile#L56-L58

Error (Xcode): Building for iOS Simulator, but linking in dylib built for iOS, :(

@littleGnAl
Copy link
Collaborator

Our integration test is running on the ios simulator on GitHub action, so it should work fine with the ios simulator, I believe there's some missing config causing the issue.

It's better to raise a new issue and provide a reproducible demo so we can take a look.

@phodonou
Copy link

Any luck on this?

Not working for me on emulator but works on real device.

@phodonou
Copy link

Try adding the following line to your ios/Podfile file https://github.com/AgoraIO/Agora-Flutter-SDK/blob/master/example/ios/Podfile#L56-L58

I did this.

Then I downgraded to 5.2.0. And I did a flutter clean. My app started now.

@akanksha820
Copy link

Not working for me on emulator but works on real device.

@deepak9166
Copy link

deepak9166 commented Nov 20, 2022

I downgrade agora version and try still it's not working

@deepak9166
Copy link

I fixed this issue by add these two line in pod file.

config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "i386"

image

@littleGnAl littleGnAl added the waiting for customer response waiting for customer response, or closed by no-reponse bot label Nov 3, 2023
Copy link
Contributor

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
waiting for customer response waiting for customer response, or closed by no-reponse bot
Projects
None yet
Development

No branches or pull requests