Xcode 10.12

  1. Xcode 10.12.6
  2. Xcode 10.13
  3. Xcode Releases
10.13

All downloads are hosted by Apple. Links on this site take you directly to Apple’s download pages. This is not an official Apple website. Please consider donating to help maintain it. As expected, Apple has finally released its next most advanced Mac operating system i.e. MacOS Sierra 10.12 and Xcode 8 apps development tool at Worldwide Developer Conference 2016.The latest macOS Sierra 10.12.6 Beta (Build 16G23a) and Xcode Beta updates are now available for macOS developers and non-developers (general public users) for free. MacOS 10.12.4; The latest version of Visual Studio for Mac; Xcode 9.0 or later; A device with iOS 11.0 or tvOS 11.0 and later; The latest version of Visual Studio; A device with iOS 11.0 or tvOS 11.0 and later; On your Mac build host, the following components should be installed: macOS 10.12.4; Visual Studio for Mac; Xcode 9.0 or later. Xcode for PC and Mac. Written by Apple. Category: Developer Tools Release date: 2021-06-21 Licence: Free Software version: 12.5.1 File size: 7.24 GB Compatibility: Available on Windows 10, Windows 8.1/8, Windows 7, Windows Vista and Mac OS 10-11 10.14.4.

10.12

Before using FlutterFire on MacOS, you must first connect to your Firebase project with your MacOS application.

Generating a Firebase project configuration file#

On the Firebase Console, add a new iOS app or select anexisting iOS app for your Firebase project. The 'iOS bundle ID' must match your local project bundle ID for your MacOS application. The bundle IDcan be found within the 'General' tab when opening macos/Runner.xcworkspace with Xcode.

Download the GoogleService-Info.plist file for the Firebase app.

Installing your Firebase configuration file#

Next you must add the file to the project using Xcode (adding manually via the filesystem won't link the file to theproject). Using Xcode, open the project's macos/{projectName}.xcworkspace file. Right click Runner from the left-handside project navigation within Xcode and select 'Add files', as seen below:

Select the GoogleService-Info.plist file you downloaded, and ensure the 'Copy items if needed' checkbox is enabled:

Setting up entitlements#

It is important you setup entitlements.

Failure to setup will result in network errors. You will not be able to connect to services such as any Firebase Emulator.

Enabling use of Firebase Emulator Suite#

The Firebase Emulator Suite uses un-encrypted networking connections in order to enable fast, uncomplicated setup. However macOS by default requires encrypted networking connections. If you would like to use any part of the Firebase Emulator Suite to emulate firebase services on your local machine during development, you must allow your macOS app to connect to local network services over insecure connections.

To allow insecure connections, we recommend adding the NSAllowsLocalNetworking key to the NSAppTransportSecurity dictionary in your application's plist file.

Specifically if your app is named 'MyApp', and are sharing your configuration between iOS and macOS you might add these keys in ios/MyApp/Info.plist:

<dict>
<true/>

Initializing FlutterFire#

Xcode 10.12.6

Once complete follow the instructions on Initializing FlutterFire.

macOS Supported Versions#

NameDeployment Target (minimum)
firebase_core10.12
cloud_firestore10.12
firebase_analytics10.12
firebase_app_check10.12
firebase_auth10.12
firebase_crashlytics10.12
firebase_database10.12
firebase_dynamic_links10.12
firebase_in_app_messaging10.12
firebase_messaging10.12
firebase_performance10.12
firebase_remote_config10.12
firebase_storage10.12

Please see the underlying firebase-ios-sdk for further details.

In this post I will show how to Install Cocoa Pods for Xcode projects. Cocoa Pods is a dependency manager for Swift and Objective-C Cocoa projects.

Installation

Xcode 10.13

When you install XCode, you also get the gem (RubyGems, the Ruby package manager). This command allows you to install Cocoa Pods for Xcode, without any extra configuration. Execute the following command

sudo gem install cocoapods

After fetching a list of dependency packages, you can use cocoa pods calling the command pod. However, each command must be executed in theroot folderof your Xcode project:

  • pod init: To create an empty initial PodFile in your Xcode project folder.
  • pod install: To install packages defined in the PodFile

Using Cocoa Pods command line

Xcode 10.12

Create your Xcode application as usual. Then, after you install Cocoa Pods, you can create the initial PodFile executing pod initinside the root folder of your application. After that, you will get aPodFile like this:

If you want to add some pod, like the Google Maps iOS SDK components, you can add it to the section target:

Then, you can install the pods defined in the PodFile using the command pod install.

The first time you run pod install, the system will retrieve the master repository of Cocoa Pods. This will retrieve a local reference of all Cocoa pods available. It could take a couple of minutes to complete.

Then, you will receive a message of a successful installation of pods:

To avoid the warning message about the platform version, you may want to edit the Podfile. Uncomment the platform definition or creating a new one. Generally, use the last available platform, unless the project or the component has some platform version restrictions:

platform :ios, '12.0'

Your Podfile contents will lok like this one

Using Cocoa Pods Components in Xcode

Open the Xcode project workspace

Running the command pod install will create a new Xcode workspace to manage your project. From now, you need to open your project from the .xcworkspace (Example: ios-googlemaps-view.xcworkspace).

Open the .xcworkspace file from Finder or call open your-project-name.xcworkspace from command line. If you open the .xcodeproj file, you will not be able to compile your project with cocoa pods references.

Xcode Project structure

Now your workspace contains 2 projects, your Application itself, and the Pods project. The second one is to manage your pods, to compile and link with your project.

Add a Custom Cocoa component

Adding a custom component is simple.

  • Start adding an UIView to your application view.
  • Configure the contraints and position
  • Configure a custom Class name (Example: GMSMapView)
Attach your component to the code

Follow this steps to attach your component to the code as an @IBOutletand complete the imports:

  • Open an assistant editor(double circle button) along with the storyboard side-by-side
  • Right click over the component and drag to the ViewController code window
  • Assign a variable name(example: mapView)
  • Add import for GoogleMaps library
  • Additionally, modify AppDelegate to configure API keys for Google Maps and Google Places API if needed.

From this point, you will be able to work in your application as usual.

Xcode Releases

Originally Posted in https://developerhowto.com/2018/11/06/cocoa-pods-for-xcode/