Build for socketRocket failed - socketrocket

Downloaded socketRocket from GitHub, trying to build it. Getting following error -
error: ../SocketRocket-master/Configurations/Shared/Project/Debug.xcconfig: unable to open file (in project "SocketRocket") (in target 'SocketRocket-iOS')

I was trying to build the project to get the socketRocket framework to include in my iOS project but you can get framework from the following link of their latest release - https://github.com/facebook/SocketRocket/releases/download/0.4.2/SocketRocket.framework.zip

Related

Flutter Plugin Development native vendored_frameworks file not found

I'm working on the flutter-webrtc plugin for iOS. Previously, the plugin use the prebuilt cocoapods dependency. But, in the WebRTC M80 Release Notes they state they are going to be deprecating the mobile libraries.
To stay up to date with the latest iOS native WebRTC bugfixes and features, we now need to build from source.
I've built from source and I was testing it with WebRTC's AppRTCMobile example app and it is working over there. Now I am trying to import the WebRTC.framework into the flutter plugin and I'm having trouble.
There is no flutter documentation on this, but I followed guidance from this github issue. I've copied the binary built from source into the plugin ios directory and modified the flutter_webrtc.podspec to include the framework, but I'm getting the error:
Xcode's output:
↳
In file included from /Users/corey/Workspace/flutter/flutter-webrtc/ios/Classes/FlutterWebRTCPlugin.m:1:
/Users/corey/Workspace/flutter/flutter-webrtc/ios/Classes/FlutterWebRTCPlugin.h:4:9: fatal error: 'WebRTC/RTCDataChannel.h' file not found
#import <WebRTC/RTCDataChannel.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/corey/Workspace/flutter/flutter-webrtc/ios/Classes/FlutterRTCVideoRenderer.m:1:
In file included from /Users/corey/Workspace/flutter/flutter-webrtc/ios/Classes/FlutterRTCVideoRenderer.h:1:
/Users/corey/Workspace/flutter/flutter-webrtc/ios/Classes/FlutterWebRTCPlugin.h:4:9: fatal error: 'WebRTC/RTCDataChannel.h' file not found
#import <WebRTC/RTCDataChannel.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description
I'm really new to flutter plugin development so I'm not sure if I'm doing this correctly. Any tips would be very appreciated!
After adding the binary to the plugin ios directory, I needed to manually go into my app's ios directory (the app depending on the plugin) and manually run pod install && pod update.
After that, the plugin import errors were fixed and I'm now using WebRTC built from source in the flutter-webrtc plugin :)

Xcode command line build gives "using bridging headers with framework targets is unsupported" error

I have a cordova project which includes the following Swift framework https://cocoapods.org/pods/SevenPassSDK - when I build and archive from within Xcode everything works fine, however when I build on the command line with xcodebuild I receive the error using bridging headers with framework targets is unsupported.
I have 2 questions, firstly, why does this error only manifest on the command line build? Secondly, how can I modify my project to avoid the error (I don't want to have to modify the framework as it provided by a third party).

Not able to link a Carthage framework to Xcode project

I am trying to link a new framework downloaded via Carthage to one of my project but getting a linker error:
I'm following these steps:
Updated the Cartfile with the framework location.
Run carthage update command to fetch the framework.
Under project target -> Build Phase added a new Run script and renamed it to Framework Copy.
Added the script to copy the framework from the file system : $(SRCROOT)/Carthage/Build/iOS/CleanroomLogger.framework.
Dragged and dropped the framework from the mentioned location under Link Binary With Libraries section of project target -> Build Phase.
Double checked the Framework Search Path under build settings and it seems to be set correctly : $(PROJECT_DIR)/Carthage/Build/iOS.
Am I missing something?
Eventually it turned out to be deployment target issue. The framework I was linking was supported with minimum deployment target as 8 and I was running with 7 :). I wish the build error could be more descriptive.

Adding Firebase via importing SDK (not CocoaPods) causes file not found exception

I am attempting to add Firebase to my iOS project via importing the SDK instead of using CocoaPods (I'm not a fan).
I have followed the documentation but I am getting file not found error.
I have cleaned, deleted, restarted, re-imported, re-did the instructions SEVERAL times and I keep getting this error.
Has anyone succesfully imported the Firebase SDK into an iOS project?
Added to the projects directory:
The frameworks auto-added themselves to the Linked Frameworks
Added the -ObjC to Other linker flags
But still the file not found error:
Any help?
Inside the frameworks:
Pastebin of the Build file: PASTBIN
Try adding the Firebase SDK to the root directory and later move them to the frameworks folder.

cordova-camera plugin installed in ios but giving error

I am using cordova-camera plugin for ios. It got installed properly but after compilation it gives error in CDVcamera.m file.I am using xcode v5.1.1 and cordova v5.3.3.enter image description here
From XCode, Select Target In Build Phases > Link Binary With Libraries you should add ImageIO.framework and CoreGraphics.framework

Resources