upgrading libmosquitto from 1.1.3 to 1.4.8 in iOS - ios

I am working on a project where I am using libmosquitto 1.1.3. It is working fine with WITH_TLS flags for ssl.
Now I have to upgrade the library to latest version which is 1.4.8.
I was unable to download new library but it does not have WITH_TLS flag in it.
When I copied this Preprocessor to my file it gave error openssl/ssl.h file not found.
Any on using this library in iOS , Please suggest something.

I solved the problem, After a lot of research, I came to know that the difference between Two library is the Version 1.1.3 has WITH_TLS flag setting only in one file/place. But Version 1.4.8 of Mosquito has some new file related to TLS and WITH_TLS has to be set there too.
After setting this flag at two places I am successfully abel to compile..
:)

Related

Swift Snapshot for version 4.1

I'm new to iOS development, so thank you in advance for the help. I'm trying to build an application that was built in XCode 9.3 and Swift 4.1. When I install the packages using Carthage, it throws this error:
"Skipped installing CryptoSwift.framework binary due to the error:
"Incompatible Swift version - framework was built with 4.1 (swiftlang-902.0.48 clang-902.0.37.1) and the local version is 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5)."
The reason for the error (very clear...) is because I'm trying to build the project using XCode 10.2 and Swift version 5.0.1. So in order to fix it, you need to go to the swifts snapshots and download the version I need and install it.
However, when I go to the swifts snapshots I see the one for 4.1 but the links seem to be broken(?). It redirects me to the apple Xcode documentation.
Does anyone know where and how can I install the swift version I need?
Thanks,
If I understand your problem right, try giving this a go(if not already):
When using a newly released version of Xcode you'll have to build
libraries from source (by passing --no-use-binaries to carthage
update) until a new version of framework comes out which has pre-built
binaries for that Xcode version.
The above is an extract from: https://github.com/realm/realm-cocoa/issues/6134 and it might help...

How to get AWS frameworks working in Xcode 11?

I'm trying to get AWS frameworks working in Xcode(version 11.2.1) by importing them manually. The only way I get them working is by adding them in the Embed Frameworks under Build Phases. Everything is fine until I import AWSMobileClient in one of my swift files. Here things go wrong. If I try to build project on device simulator I get this error:
Could not find module 'AWSMobileClient' for target 'x86_64-apple-ios-simulator'; found: arm64, armv7-apple-ios, arm64-apple-ios, arm, armv7
Then I change to physical device and I get this error:
Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler: /Users/lukacefarin/Library/Mobile Documents/com~apple~CloudDocs/Projects/InoSupport/AWSMobileClient.framework/Modules/AWSMobileClient.swiftmodule/arm64-apple-ios.swiftmodule
I read about this error on stack overflow and it seems that I can't do much except waiting that AWS will fix that.
Is there any workarounds? All my project frameworks are imported manually so I don't want to use Cocoapods or Carthage.
EDITED on 9 February 2020:
I posted this issue on GitHub and get replay that they are working on the solution. Till then use dependency managers I guess.
I was facing the same problem as you can see, my local swift version is 5.1.3.
"Incompatible Swift version - framework was built with 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)."
So, I had to look for aws-sdk-ios version compatible with my installed swift version 5.1.3.
Your installed swift version is 5.1.2.
During my tries, I found an aws-sdk-ios version compatible with your local version of swift 5.1.2.
Try to use aws-sdk-ios "2.13.0", my log says that this framework was built with 5.1.2.
*** Checking out aws-sdk-ios at "2.13.0"
*** Downloading aws-sdk-ios.framework binary at "AWS SDK for iOS 2.13.0"
*** Skipped installing aws-sdk-ios.framework binary due to the error:
"Incompatible Swift version - framework was built with 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)."

React Native project version upgrade error: v0.56 to v0.60, iOS fails

I'm currently upgrading one of my projects built in React Native v0.56 to latest v0.60. Created a new project with version v0.60 and updated all the packages used in previous version of app, but now facing weird errors.
I've already tried all the possible solutions mentioned in Git and Stack overflow. None of them worked for me. I've also tried to remove plugins one by one and then adding them but not able to find cause of the error.
iOS:
In iOS, all the packages by default autolinks as per v0.60, but I got error of linking in very first package, I've tried manual linking too, not working.
After manual linking do cd ios and then pod install. This will not be done by autolinking and you have to do it yourself. On iOS on my project i had to manual link on iOS almost every library and almost all of them needed a pod install
use upgrade helper from react native community Upgrade Helper

Microblink: Failed to load resource uae_name_dictionary in latest Version 4.9.1

I am using the Microblink framework for scanning the Emirates ID. I have successfully integrated the Microblink framework with version 4.4.0, but now I want to upgrade it to the latest version 4.9.1.
I have replaced the framework and bundle file with the latest one, the application starts crashing on the Scan emirates Id screen and shows the following log on console.
"Failed to load resource uae_name_dictionary. The program will now crash!"
Environment:
Xcode version:10.2
BlinkID SDK version: 4.9.1
What are you trying to scan? Emirates ID
Does anyone know how to deal with this kind of error? Thanks in advance !
Try removing the framework and bundle files completely and then adding the new ones (framework and bundle version 4.9.1) to your project.
In version 4.8.0 we renamed the framework from MicroBlink to Microblink to be more in line with our brand. Since your OS is case insensitive it doesn't detect the change in name, while the linker for example does.
Hope that helps.

Gstreamer 1.0 ios sdk installer failed to install

This is my first time trying with Gstreamer for ios , I went with the tutorial and installed the SDK with the link provided by the tutorial:
http://docs.gstreamer.com/display/GstSDK/Installing+for+iOS+development
The installation works fine, but after I start trying the tutorial example projects, there couple of compiling errors compiling about missing gst/video/videooverlay.h . Then I looked into the header folder under the installed GStreamer header folder, there is no filed called video/videooverlay.h
Then I search online, found this information:
Gstreamer for iOS provided is out of date. I used the freedesktop packages
from https://github.com/braincorp/gstreamer_ios_tutorial
Then I downloaded another installation pkg for GStreamer
Then while I was trying to install the later version, the installer give me error saying:
you cannot install GStreamer 1.0 (Development Files) in this location.
Then I thought I might need to uninstall the previous version, but I couldn't finder a standard uninstallation option from the installer, then I searched online, find one post suggest remove the GStreamer folder under ~/Library/Developer
I have removed the installed folder, so I don't have any header files, but the new installer still gives the same error
I have been trying to figure this out for sometime, couldn't find useful info on line , I really appreicate any clue and help you might have!
Thanks!!
Jing
Answering my own question here..
not sure what's the issue, after restarting my mac, and run the installer couple of times with the same error, it suddenly worked ....... i am not sure what's the matter here, hope gstreamer team can improve the stability of the installer in the future.
At work we are currently trying to get the IOS tutorials from the streamer 1.0 sdk to run.
1) Compilation: Same thing: we managed to bootstrap (cerbero ... bootstrap) and compile (cerebra ... package streamer-sdk) using the official cerebero git repository.
But:
a) We had to mock around with the /cerbero/cerbero/enums.py file:
Add in the collection of supported old IOS (6.0, 6.1, 7.0, etc...) the one corresponding to our Xcode version : IOS 8.4
b) We had to customize the /cerbero/config/ios.config and iOS-universal.config files to get them to use the right architecture in our case: arm7v or arm7 instead of X64_86 or x86
c) We removed the not found is_asm() function from the x264 plugin's recipe file in the /cerbero/recipes.
For a reason we ignore, for all other platforms but IOS, the recipes check on the architecture available using:
if self.config.target_arch == Architecture.xxx:
of iOS is was using that missing function: is_asm(self.config.target_arch)
We replaced it by:
if self.config.target_arch == Architecture.ARMv7:
Compiling an iOS app using streamer:
So far it is a failure. we bumped into the same missing overlay.h header file. We couldn't find it anywhere.
DIFFERENCE between gstreamer.com (the sdk provider) and the official streamer website (free desktop.gsteamer.org):
We found out that gstreamer.com is clearly a commercial goal company that is making available the sdk, that people struggle on with for IOS (tested and working fine on linux) and the official website is providing the gstreamer library only without an sdk.
So this is what we are trying to use instead as of today.
Versions infos:
sdk (from gstreamer.com): current cerbero git master branch: git clone git://anongit.freedesktop.org/gstreamer-sdk/cerbero
official gstreamer library:
http://gstreamer.freedesktop.org/data/pkg/ios/1.5.2/

Resources