Firebase SDK for Unity does not compile in iOS - ios

I'm working on a project that uses the Firebase SDK for Unity, specifically the FirebaseMessaging.unitypackage, it's all fine on android, but I'm receiving errors on the iOS build.
Minimal, Complete, and Verifiable example to reproduce the error:
Requirements:
iOS device (version 7.0 or later)
Computer with macOS
Xcode 8
Steps:
Download the latest Unity version. (5.5.1f1 at this moment)
Download Firebase SDK for Unity.
Unzip the Firebase SDK for Unity.
Open Unity 5.5.1f1 and create a new project.
Go to Assets > Import Package > Custom package... , select the unzipped FirebaseMessaging.unitypackage and import all of it.
Go to File > Build Settings... , select iOS and click on Switch Platform.
Open Player Settings... and set a Bundle Identifier.
File > Save project
Connect the iOS device to the computer.
File > Build & Run
The project build on Xcode will end on the error shown in the image below:
Tried in two different MacBooks and with multiple projects.
Is there something that we can do?
Is it an error that must be
resolved by Google?

At Feb 27 a new version of the Firebase Unity SDK has been released solving this error. Now the Unity project compiles without errors for iOS.

Related

Flutter iOS Validation -A value for the key “WKApplication“, or “WKWatchKitApp“ if your project has a WatchKit App Extension target, is required

I working on a flutter app that interacts with a similar smaller version as watch app.
For Android I'm not faceing probelms. But I'm still struggling with iOS.
After I created the default flutter app and added a watch as target, I tried to test validate this. I archived my project with
flutter build ipa
and validated the created archive. For that I opened
My App > build > ios > archive > Runner.xcarchive
by double clicking on it. That opend Xcode and the 'archive manager'. Here I clicked on 'Validate'.
I also tried it by the 'Transproter' app.
Both validation ways are ending with this error:
Missing Info.plist value. A value for the key “WKApplication“, or “WKWatchKitApp“ if your project has a WatchKit App Extension target, is required in “Runner.app/Watch/XXXXX App.app“ bundle. For details, see: https://developer.apple.com/documentation/watchkit/creating_independent_watchos_apps/setting_up_a_watchos_project
I have no idea how I can fix this.
My current setup is:
Flutter 3.3.2 - channel stable
Dart 2.18.1
DevTools 2.15.0
Android Studio Dolphin | 2021.3.1
Xcode Version 14.0
What I also tried is: I created a new project with a normal iOS App (not flutter) and added a watch as target. This validated without any problems.
I'm facing the same issue when I want to archive and release a test version of my flutter project with a watch app in Xcode 14. I can run the whole project locally without any problem. I have no idea how to deal with it so far.
I tried to add the WKWatchKitApp key to the info.plist of the WatchKit App, but I got more errors saying that I'm missing the WatchKit App Extension' target. I'm confused about it since the Xcode 14 Release Notes said:
Xcode 14 includes a default template for watchOS apps that combines the WatchKit App and WatchKit App Extension targets into a single Watch App target, simplifying code, asset, and localization management. You can deploy single-target watchOS apps to watchOS 7 and later. (83222217)
I'm developing with:
Flutter 3.3.0
Dart 2.18.0
DevTools 2.15.0
Xcode 14.0
I'm wondering if it is caused by Xcode or the old version of Flutter.
Update: 20230211
I tried to upgrade my Flutter to 3.7.3, delete the build cache by running flutter clean, and clean the Xcode build folder. Then update and reinstall all the flutter and pod dependencies I'm using and recompile the whole project. The project can now archive and release to Testflight.

Error when trying to open cloned project in xcode: "Could not open file"

I want to create an iOS build for my cordova app. For this i must use Xcode. I cloned the repository and tried to open it using File > open > path but I always get the following error:
The project does not have any .xcodeproj or other xcode-related files in it because it was not developped in Xcode.
What I've tried already:
I also tried opening xcode from the terminal inside the project-directory but that resultet in the same error.
Restarted the Mac and Xcode.
Logged out of my Apple- and GitHub accounts in Xcode and logged in again.
Deleted all of the DerivedData files and iOS Device Logs
I'd be very glad if someone could help me.
If you look at https://cordova.apache.org/docs/en/11.x/guide/cli/index.html, there are steps how to create a project for iOS.
Here is a snapshot:
Add Platforms
cordova platform add ios
cordova platform ls
Build the App
cordova build ios
That should create an Xcode project.

Firebase Crashlytics: Upload dSYM script blocks iOS app building and archiving

I integrated Firebase Crashlytics in one of my bitcode disabled iOS project. It's working properly if I remove upload dSYM script(see image 2). But if add it then app building process never get complete same thing happens for app archiving also.
I integrated Firebase Crashlytics in some other projects as well and all are working properly and used same configuration and scripts but only this app have issue.
Project Configuration -
Crashlytics version - 4.6.2
My project minimum deployment target - iOS 12
XCode version - 12.5 and Xcode 13
I checked my app bundle identifier it is proper in GoogleService-Info.plist. And path of GoogleService-Info.plist is also correct in script.
I have following scripts -:
Script 1.
Script 2.
Updated Crashlytics version from 4.6.2 to latest version 8.8.0. It solved the issue. But still I could not find any reason why older 4.6.2 is working in other projects but not working in only one project.

UnityAppController.h file not found

When I build my unity IOS app on Xcode through Unity 2019.2.9f1. UnityAppController.h file not found error occurred.
On Xcode, I can see there's UnityAppController.h file. However, when clicking the file, the script does not show up.
These sites below are what I referred. But Xcode still shows the same error. If there's anyone who's familiar with how to handle this issue, would you give some advice? Combatting with this error for days is exhausting.
Xcode file not found
'UnityAppController.h' file not found #53
/UnityAppController.h
Unity3D 4.2 building for iOS results in "AppController.h file not found" error
Importing unity xcode projet into existing xcode app projet
UnityのiOSでAppDelegateに処理を追加する
Just try to import unity facebook sdk package in your project:
step1: Download facebook unity sdk from Unity Facebook SDK
step2: import package in unity goto Assets/Import Package/Custom Package then locate your downloaded sdk.
step3: Now just build and run your project.

Unity 2017.2 version with ARkit is not building with Xcode 9.1

I have downloaded latest version of Unity 3D for Mac ( 2017.2)and imported the latest version of the ARKIT from the below location https://bitbucket.org/Unity-Technologies/unity-arkit-plugin. It is able to successfully build the unity package for iOS however in Xcode when we tried to build and run it gives lot of error msgs like Use of undeclared identifier "ARSession configuration". Similarly lot of compatibility errors are coming. Can some one let me know if Unity be used with latest version of Xcode.
Attached the screenshot for your reference.

Resources