Skip to content

Instantly share code, notes, and snippets.

~/github/react-native-firebase/.github/workflows/scripts (main) $ ./start-firebase-emulator.sh
~/github/react-native-firebase/.github/workflows/scripts/functions ~/github/react-native-firebase/.github/workflows/scripts
yarn install v1.22.18
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] 🔍 Validating package.json...
error functions@: The engine "node" is incompatible with this module. Expected version "16". Got "14.17.5"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Starting Firebase Emulator Suite in background.
Bacon::Error: File comparison error `Pods/Target Support Files/Pods-Abstract Target-macOS Pods-Dynamic/Pods-Abstract Target-macOS Pods-Dynamic.debug.xcconfig` for install_static_swift_modules:
--- DIFF -----------------------------------------------------------------------
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CustomModuleMapPod-framework-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/MixedPod-framework-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/ObjCPod-framework-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftPod-framework-macOS"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/../Frameworks' '@loader_path/Frameworks'
-OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/CustomModuleMapPod-framework-iOS/CustomModuleMapPod.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/CustomModuleMapPod-framework-macOS/CustomModuleMapPod.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MixedPod-frame
@paulb777
paulb777 / gist:ed910f1500ca15bde6f1150c47b8905a
Created March 15, 2018 23:01
Fixes to Mixed Objective C and Swift static_framework test for https://github.com/CocoaPods/CocoaPods/issues/7307
diff --git a/Example/SwiftOCMixedPodWithLibAndFrameworkDependencies/AppOCObject.m b/Example/SwiftOCMixedPodWithLibAndFrameworkDependencies/AppOCObject.m
index 527aa12..23f5628 100644
--- a/Example/SwiftOCMixedPodWithLibAndFrameworkDependencies/AppOCObject.m
+++ b/Example/SwiftOCMixedPodWithLibAndFrameworkDependencies/AppOCObject.m
@@ -26,7 +26,7 @@
// pod files
// TODO:
- // NSLog(@"%s %d %@", __PRETTY_FUNCTION__, __LINE__, [SwiftObject new]);
+ NSLog(@"%s %d %@", __PRETTY_FUNCTION__, __LINE__, [SwiftObject new]);
~/gh/Rainforest (master) $ rake bootstrap
/usr/local/bin/bundle
--------------------------------------------------------------------------------
Fetching repositories list
--------------------------------------------------------------------------------
Found 59 public repositories
--------------------------------------------------------------------------------
Cloning the GEM repositories
Ld /Users/paulbeusterien/Library/Developer/Xcode/DerivedData/Firebase-fnkznbqrceqducahowvgwcwrfvkz/Build/Products/Debug-iphonesimulator/FirebaseDev-Core-Root-iOS/FirebaseDev.framework/FirebaseDev normal x86_64
cd /Users/paulbeusterien/gh/prs/firebase-ios-sdk/Example/Pods
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -L/Users/paulbeusterien/Library/Developer/Xcode/DerivedData/Firebase-fnkznbqrceqducahowvgwcwrfvkz/Build/Products/Debug-iphonesimulator/FirebaseDev-Core-Root-iOS -F/Users/paulbeusterien/Library/Developer/Xcode/DerivedData/Firebase-fnkznbqrceqducaho
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Kind</key>
<string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
<key>Identifier</key>
<string>com.test.Application</string>
<key>Concrete</key>
<true/>
@paulb777
paulb777 / GCDAsyncSocket-Apportable.m
Last active June 26, 2018 17:48
Apportable version of GCDAsync.m that works around an issue with spurious EOF's.
//Apportable version of GCDAsync.m that works around an issue with spurious EOF's.
// Also make this change to GCDAsyncSocket.h :
//--- a/GCDAsyncSocket/GCDAsyncSocket.h
//+++ b/GCDAsyncSocket/GCDAsyncSocket.h
//@@ -21,7 +21,7 @@
//- #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 50000 // iOS 5.0 supported
//+ #if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 50000) && !defined(APPORTABLE) // iOS 5.0 supported
@paulb777
paulb777 / index.html
Created November 3, 2011 01:53
Twitter AJAX API call from PhoneGap
<!DOCTYPE html>
<html>
<head>
<title>PhoneGap Ajax Sample</title>
<script type="text/javascript" src="phonegap-1.1.0.js"></script>
<script type="text/javascript">
function appReady(){
var ajax = new XMLHttpRequest();
ajax.open("GET","http://search.twitter.com/search.json?q=phonegap",true);
ajax.send();