AgoraRtcEngine_iOS and agora_rtc_engine version conflict - ios

I am using AgoraRtcEngine_iOS version 3.7.0 as Screenshare exntension for iOS native and agora_rtc_engine 5.2.0 in flutter in Same flutter project. Issue is when I am performing pod install it shows as shown below. And for old version screen share is not working fine. Does anyone know the solution ?
The 'Pods-Runner' target has frameworks with conflicting names: agoraaidenoiseextension.xcframework, agoradav1dextension.xcframework, agoraciextension.xcframework, agorafullaudioformatextension.xcframework, agorafdextension.xcframework, agorareplaykitextension.xcframework, agoracore.xcframework, agorartckit.xcframework, agorasoundtouch.xcframework, agorafdkaac.xcframework, agoraffmpeg.xcframework, agorasuperresolutionextension.xcframework, agoravideoprocessextension.xcframework, and agoravideosegmentationextension.xcframework

You can use Agora iOS SDK version 3.6.2-fix.1 with your Flutter project

Related

Flutter pub get Flutter version mismatch | podfile.lock flutter version mismatch

I have updated my flutter version to 3.0.1 - Reference
I have one existing flutter project. When I hit flutter pub get command, inside ios/Flutter/Flutter.podspec file, it is showing flutter version 1.0.0.
s.version = '1.0.0'
Also in the iOS podfile.lock file is also showing flutter version 1.0.0. I tried updating pod, etc everything but same issue.
PODS:
Flutter (1.0.0)
Why it is showing 1.0.0 instead of 3.0.1. or this is not the correct way to check & update flutter version of existing project?
The flutter version depends on your environment (not the project), so you should be able to just run flutter --version to see which version you're running.
As for the project, it should normally build with any compatible flutter version. If you look at your pubspec.yaml, it should have the environment part which specifies the SDK. It should look something like the following to be compatible with the new Flutter version:
environment:
sdk: '>=2.17.0 <3.0.0'
I think (not entirely sure, though) that the 1.0.0 that you see is the app version, as specified in the pubspec.yaml version (usually right above the environment bit).

Upgrading React Native plugin to support autolinking and React Native versions 0.6>=

I am fairly new to React Native but am helping manage a React Native plugin and would like some guidance for upgrading it so that it is compatible with auto linking and React Native versions 0.60 and up in iOS.
Our plugin currently only works with React Native up to and including 0.59.x through the react-native link command and sometimes involves manually dragging our xcodeproj and .a binary inside Xcode.
When trying to instrument our plugin with a blank hello world React Native app of version 0.60.5, after react-native link and dragging in Xcode, we get an error saying rctbridgemodule.h not found and have to add React.xcodeproj too. This however doesn’t work on some apps we’ve tried. Furthermore the issue is in newer versions of React eg 0.61.4, the React.xcodeproj file is no longer in the React folder in node_modules. 

I’ve had a look at the What do I need to have in my package to make it work? Section in this link: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
But to me its not very clear how we should be configuring a pod spec in the root of our repo. Our package is scoped also. I’m assuming that there shouldn’t need to be any changes to the actual code of our plugin but rather just some modifications to our pod spec and package configuration. Any guidance in how this works and how to upgrade our plugin to support versions 0.6 and above would be greatly appreciated. Thanks!

Xcode 10.2 support with the latest NativeScript?

Building an iOS project after using the default NativeScript Advanced Mac OS instructions does not work.
I have a fresh, new macbook, OSX Mojave 10.14.4, with the latest available Xcode Version 10.2 (10E125).
I followed the NativeScript instructions precisely:
https://docs.nativescript.org/start/ns-setup-os-x
After a few hiccups, I have Android working, but not iOS.
I first started with the issue and solution found here: Swift Version NativeScript
However, after following the steps to downgrade cocoapods from 1.6.0 to 1.5.3, I get errors about Swift 3.0 / 3.1 not being supported and again, a failed build.
After setting up NativeScript using the docs, you see this error:
[!] Unable to determine Swift version for the following pods (for each pod):
- `Socket.IO-Client-Swift` does not specify a Swift version and none of the targets (`<my-project>`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
After downgrading cocoapods, you see this error instead (for each pod):
error: SWIFT_VERSION '3.1' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'Socket.IO-Client-Swift')
I also tried opening the project in Xcode. You immediately see the same error from the command line.
Is there any way for the latest Xcode and the default NativeScript setup to work without any further configuration?
The problem is that Xcode 10.2 brings Swift 5 and deprecates Swift 3. Plugins that use outdated Swift code won't work.
Solution 1: Downgrade to Xcode 10.1.
Solution 2: Update the nativescript plugins that use Swift 3 pods.
Update to the latest nativescript-vue-devtools
npm uninstall nativescript-vue-devtools
npm install --save nativescript-vue-devtools
Replace the packages nativescript-socket.io with nativescript-socketio:
npm uninstall nativescript-socket.io
npm install --save nativescript-socketio
Replace the packages nativescript-toast with nativescript-toasty:
npm uninstall nativescript-toast
npm install --save nativescript-toasty

No such module 'DJIWidget' when trying to integrate DJI video feed

I have been trying to integrate the DJIWidget library into my Xcode project to display a live video feed from a drone, but I have been unable to get Xcode to find the DJIWidget module.
I tried downloading the DJI iOS-FPVDemo-Swift project and running pod install, but it has the exact same problem, where Xcode cannot find the DJIWidget module.
Is this an issue with the way Cocoapods is installing it?
I am using Xcode 10.1.
I remember DJIWidget has an issu with the last version of Cocoapods 1.6.0. Could you degragde your Cocoapods to 1.5.3 and try again. Hope this helps.

Facing flutter plugin issue

I'm trying to add flutter_svg: ^0.5.1 in my project pubspec.yaml and facing following issue.
depends on flutter_svg >=0.0.2 which requires Flutter SDK version >=0.3.6 <2.0.0, version solving failed.
You might be able to use something like this to override the dependency:
dependency_overrides:
flutter_svg: '0.5.1'
Open the flutter_console.bat (on window) or flutter_console.sh (on linux) file from your downloaded root flutter folder. This should bring up a terminal running Flutter locally.
Now type flutter upgrade
This should resolve your issue considering its a version compatibility issue.

Resources