

A shell script to selectively copy your GoogleService-Info.plist into your app b...
source link: https://gist.github.com/tylermilner/f8e9121d62c890cb707bc1810a7d57d9
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

reneeOlson commented on Aug 16, 2018 •
Hi Tyler. I really appreciate your solution because I did not want to add another target. However, I’ve had a couple things occur since I implemented it yesterday. The first thing was that xcode asked me to add a new URL scheme for the production version, which I did and things seemed to ran ok yesterday. But today, I keep getting a message — No default storage bucket found - on the debug version. I’ve had this app/firebase debug project working fine regarding storage until today. I’ve never used a shell script before, so not sure if it’s the reason for this error. What are your thoughts? Appreciate your help! FYI - I also posted this on the Medium website before here.
Hi Tyler. I ended up figuring it out, so never mind. Thanks again for your script and tutorial on Medium.
NoaD commented on Jan 18, 2021
This script and the article in Medium are great.
I had to change the script to handle mac app as well - the target location is different, so I added the following
if [ "${SWIFT_PLATFORM_TARGET_PREFIX}" == "macos" ]
then
PLIST_DESTINATION=${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Resources
else
PLIST_DESTINATION=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app
fi
Hi I am having an issue when i integrated this script and used the approach you suggested into my existing project . The issue is as follows
error: Could not get GOOGLE_APP_ID in Google Services file from build environment
When targeting watchos
use:PLIST_DESTINATION=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.appex
NTA-trongpq commented 5 days ago •
Hi @tylermilner . This is save my day. Can you explain why set PLIST_DESTINATION=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app
and not the other? Where is ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app
location in my project?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Recommend
-
106
README.md vim-illuminate Vim plugin for selectively illuminating other uses of current word under the cursor
-
57
readme.md Imaginary C2 author: Felix Weyne Imaginary C2 is a python tool which aims to help in the behavioral (network) analysis of mal...
-
15
Subuser - Securing the Linux desktop with Docker Visit us at subuser.org As free software...
-
11
How to Add NSLocationAlwaysUsageDescription Key to Info.plist File in Your iOS AppHow to Add NSLocationAlwaysUsageDescription Key to Info.plist File in Your iOS App by@kapilgorve
-
13
属性表文件(Plist)是一种文件形式,通常用于储存用户设置,也可以用于存储捆绑的信息,该功能在旧式的Mac OS中是由资源分支提供的。由于Plist中存储的数据是抽象的,其采用的文件格式可以不止一种。 macOS看起来非常有趣,尤其是...
-
12
How to read App Name, Version, and Build Number from Info.plist 17 May 2021 ⋅ 4 min read ⋅ Swift
-
7
When you create a new SwiftUI project with Xcode 13 you may notice it doesn’t have an Info.plist file. What’s going on? I wrote this post based on Xcode 13 beta 3. I’ll update it if I see changes in future beta releases
-
4
Apple Says Third-Party Apps Can Take Full Advantage of ProMotion With Plist Entry, Core Animation Bug Fix Coming ...
-
7
New issue macos path fix in launchd plist #7288
-
9
Mac OS X Lion / Mountain Lion Photo Booth Plist Rebuild/Repair Script A while ago I upgraded from an aging MacBook Pro to a much more nubile MacBook Air. Delighted with the Air in every way, the only problem I encountered was the b...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK