MAC OS project upgrades from Fabric to FirebaseCrashlytics (without CoCOPod) - macos

We need to use Firebase Crashlytics in a project.
We do not use the CocoaPods libraries, and need a statically linked library (.a)
Could you help me with how to download Firebase Crashlytics library into our project?
Here is the error output from the build process:
Prepare build
Workspace PDF Reader Pro Edtition | Scheme PDF Reader Pro Edition | Destination My Mac
Using new build system
Building targets in parallel
Planning build
Constructing build description
Build target PDF Reader Pro Edition
Project PDF Reader Pro Edtion | Configuration Debug | Destination My Mac | SDK macOS 10.15
PDF Reader Pro Edition isn't code signed but requires entitlements. It is not possible to add entitlement...
OpenGL is deprecated. Consider migrating to Metal instead.
Building for macOS, but the linked framework 'FirebaseCrashlytics.framework' was built for Mac Catalyst.
Build failed 2020/6/28, 10:06 AM 2.9 seconds
1 error, 2 warnings

The GitHub project describes how to build the project without Cocoapods.
https://github.com/firebase/firebase-ios-sdk/tree/master/Crashlytics
Clone or download the project.
Run Crashlytics/generate_project.sh
open gen/FirebaseCrashlytics/FirebaseCrashlytics.xcworkspace

Related

Build Tensorflow lite for Mac Catalyst

I'm fairly new to cross-compilation. I am developping a Swift App with a c++ backend that uses the tensorflow static lib on a Mac M1, I succeeded in compiling my own code to mac catalyst with meson.
But now I am struggling to compile the tensorflow static lib with bazel, and I didn't find any useful resources to help me in my task. I saw that apparently bazel does supports catalyst building.
I tried this command (among others):
bazel build -c opt --apple_platform_type catalyst //tensorflow/lite:libtensorflowlite.so
But I got this error that I don't fully understand:
error bazel build for mac catalyst
Any advice would be welcome !
Building TensorFlow Lite for Mac Catalyst involves several steps.
Install Xcode and the Mac Catalyst SDK:
Download and install Xcode from the Mac App Store.
In Xcode, open the Preferences window and go to the Components tab.
Install the Mac Catalyst SDK.
Clone the TensorFlow repository:
Open a Terminal window.
Clone the TensorFlow repository: git clone https://github.com/tensorflow/tensorflow.git
Navigate to the root directory of the TensorFlow repository: cd tensorflow
Configure the build:
Run the configuration script: ./configure
Select the appropriate options for your environment. For example, you may need to specify the location of the Xcode command line tools.
Build TensorFlow Lite:
Run the build command: bazel build --config=catalyst //tensorflow/lite:tensorflowlite.framework
This will build the TensorFlow Lite framework for Mac Catalyst.
Verify the build:
Navigate to the bazel-bin/tensorflow/lite directory: cd bazel-bin/tensorflow/lite
Verify that the tensorflowlite.framework directory exists.
You can now use the tensorflowlite.framework in your Mac Catalyst project. Note that you may need to modify your project settings to include the TensorFlow Lite framework and any other dependencies that it requires.

Where should I put ASP.NET Core Runtime binaries?

Some example code I'm playing with informs me that I need ASP.NET Core Runtime 2.1.14. I found it here. I'm on macOS and there is no installer, so I downloaded the "binaries" at the link "x64" under the heading "ASP.NET Core Runtime 2.1.14" on the right. I extracted the compressed folder, called "aspnetcore-runtime-2.1.14-osx-x64", which has the following contents:
dotnet
host
LICENSE.txt
shared
ThirdPartyNotices.txt
Now, I haven't the foggiest idea what I should do with these to install ASP.NET Core Runtime 2.1.14. Could someone please tell me what I should do?
To build and run ASP.NET Core apps on macOS, you need to install the SDK which also contains the runtime. There's an installer for that on the page you linked.
You can check the installed SDKs using dotnet --list-sdks and see where are they located. Same goes for the runtimes with dotnet --list-runtimes. The .NET CLI chooses the SDK version for each dotnet command, so in your case it will pick the one compatible with the version specified in your project. By default, it would use the latest.
There is an installer for MacOS on the download page for 2.1 you visited:
Make sure to download the SDK (it includes the Runtime) in the column Installers, not Binaries.
Then install it as any MacOS application. Once you did it, you can type dotnet --version in a terminal and it will return the version you just installed.

Can we write a "libstdc++" wrapper over a "libc++" library to link and build it with a "libstdc++" project?

I am building a project in Xcode in my mac machine. There are many project librarires which need libstdc++ to compile successfully; I need to compile a third party code with my project which uses libc++ libraries(boost, openssl etc).
I need to know if I can write a wrapper over my third party source code so that I can build my project successfully keeping the libstdc++ in standard library setting in Xcode.
OS version: macOS Sierra (version 10.12)
Xcode version: 8.1

Xcode 7.3.1 can't build from the commandline swift-build missing

[OSX 10.11.6, Xcode 7.3.1]
I have Xcode 7.3.1 installed from the App Store and I can compile Swift code inside the IDE. However, I am unable to build from the commandline. When I try to, I get an error:
error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build (No such file or directory)
I don't have a toolchain tab in my Preferences -> Components dialog, which, according to other threads I've read, is because I don't have any other toolchains installed. Since, according to Apple, Swift 2.2.1 came with Xcode 7.3.1 (but my --version reports 2.2), what command can I issue to create the /Library/Developer/Toolchain folder (or other variations that will work) that will allow me to build from the command line?
The SnapShot master trunk is up to Swift 3, which is not suitable for my needs and I don't want to (can't afford to) download another gig of data, when I already have the compiler, linker, etc. And I prefer not to have a -dev version of Swift.
Please help.
Additional info:
swift --version
Apple Swift version 2.2 (swiftlang-703.0.18.8 clang-703.0.31)
which swift
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
swift build
error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build (No such file or directory)
I don't think swift-build is available in Swift 2.2.1 (Xcode 7.3.1), as it's part of the Package Manager which is Swift 3 only:
The Package Manager will be released with Swift 3 and is currently only available with the Swift 3 development snapshots.

Xcode Unable to determine compile to use

I recently installed Xcode 4.2.1 and attempted to create a simple "HelloWorld" application in C++. When I went to build to application I received the following:
Unable to determine compiler to use - the abstract compiler specification is missing from this Xcode installation.
I've uninstalled and reinstalled with no success.
I haven't been able to find and resources on the internet to help me resolve this.
I'm running Lion (upgraded from Snow Leopard).
Just copy Developer Folder for Xcode 4.2.1 from another Mac Machine and run Xcode from copied developer folder(/Developer 4.2.1/Applications/Xcode).That will work perfectly.

Resources