question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS Compile error

See original GitHub issue

Hello, thanks for your great package.

Android works fine for me.

But I experience some issues with ios.

  1. Pod install error When I did pod install it gave me this error. - [!] Pods written in Swift can only be integrated as frameworks; add use_frameworks! to your Podfile or target to opt into using it. The Swift Pod being used is: react-native-agora So I added use_frameworks! to Podfile and it resolved pod install error.

  2. Compile error After pod install was successful I tried to build it and it gave me following errors. Swift Compiler Error /myproject/node_modules/react-native-agora/ios/RCTAgora/React/PromiseCallback.swift:14:26: Use of undeclared type 'RCTPromiseResolveBlock' /myproject/node_modules/react-native-agora/ios/RCTAgora/React/PromiseCallback.swift:15:25: Use of undeclared type 'RCTPromiseRejectBlock' ... ... /myproject/node_modules/react-native-agora/ios/RCTAgora/React/RCTAgoraRtcChannelModule.swift:25:25: Method does not override any method from its superclass ... ... /myproject/node_modules/react-native-agora/ios/RCTAgora/React/RCTAgoraRtcChannelModule.swift:13:33: Use of undeclared type 'RCTEventEmitter' ... ... /myproject/node_modules/react-native-agora/ios/RCTAgora/React/RCTAgoraRtcChannelModule.swift:12:2: Only classes that inherit from NSObject can be declared @objc ... ... /myproject/node_modules/react-native-agora/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManager.swift:14:19: Method does not override any method from its superclass ... ... /myproject/node_modules/react-native-agora/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManager.swift:13:38: Use of undeclared type 'RCTViewManager' /myproject/node_modules/react-native-agora/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManager.swift:30:17: Use of unresolved identifier 'bridge' /myproject/node_modules/react-native-agora/ios/RCTAgora/React/RCTAgoraRtcSurfaceViewManager.swift:34:17: Use of unresolved identifier 'bridge' /myproject/node_modules/react-native-agora/ios/RCTAgora/React/RCTAgoraRtcEngineModule.swift:63:13: Use of unresolved identifier 'sendEvent' /myproject/node_modules/react-native-agora/ios/RCTAgora/React/RCTAgoraRtcEngineModule.swift:12:2: Only classes that inherit from NSObject can be declared @objc Screenshot_162

Any solution for this swift compiler error?

Thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18

github_iconTop GitHub Comments

1reaction
bear1030commented, Sep 4, 2020

@LichKing-2234 Yes, upgrading cocoapods version worked for me. Thank you!

0reactions
LichKing-2234commented, Sep 4, 2020

it is too old, you can upgrade it and try again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to avoid compilation error in … | Apple Developer Forums
I face compilation error in Xcode 11.5 for iOS 13.5 even when declaring that my LibraryContentProvider shall be available for iOS 14 only....
Read more >
Xcode 14 & iOS 16 compile errors · Issue #189 - GitHub
The libray doesn't compile under Xcode 14 and iOS 16 beta 4. Swift Algorithms version: 1.0.0. Checklist. [x ] If possible, I've reproduced...
Read more >
iOS Xcode build error - GameMaker Community
Hi I get the following build error in Xcode with an empty project exported from Windows: ld: entry point (_main) undefined. for architecture ......
Read more >
IOS Workspace Build Failed With Swift Compile Error In Xcode ...
When attempting to build the ios workspace, the following error occurs. ... 1. Uncategorized – Command CompileSwift failed with a nonzero exit ......
Read more >
failed iOS build from Codemagic - flutter - Stack Overflow
Im trying to build a iOS in codemagic.io and after try it, it return the error below == Building for iOS == >...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found