We cannot use the latest version of the SDK because of https://github.com/firebase/firebase-ios-sdk/issues/1140. Using a non-release version, such as 4.13.1, breaks the build in other ways, so instead we want to revert to 4.11.0 until either 4.13.1 or 5.0.0 is released to Cocoapods.
When reverting to 4.11.0, which worked fine prior to the 4.12.0 release, we are encountering this error:

This is our Podfile
pod 'Firebase'
pod 'Firebase/Core', '4.11.0'
pod 'Firebase/AdMob'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Performance'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'
pod 'Fabric', '~> 1.7.2'
pod 'Crashlytics', '~> 3.9.3'
and our podfile.lock
- Firebase (4.11.0):
- Firebase/Core (= 4.11.0)
- Firebase/AdMob (4.11.0):
- Firebase/Core
- Google-Mobile-Ads-SDK (= 7.29.0)
- Firebase/Analytics (4.11.0):
- Firebase/Core
- Firebase/Auth (4.11.0):
- Firebase/Core
- FirebaseAuth (= 4.5.0)
- Firebase/Core (4.11.0):
- FirebaseAnalytics (= 4.1.0)
- FirebaseCore (= 4.0.18)
- Firebase/Database (4.11.0):
- Firebase/Core
- FirebaseDatabase (= 4.1.5)
- Firebase/Performance (4.11.0):
- Firebase/Core
- FirebasePerformance (= 1.1.2)
- Firebase/RemoteConfig (4.11.0):
- Firebase/Core
- FirebaseRemoteConfig (= 2.1.2)
- Firebase/Storage (4.11.0):
- Firebase/Core
- FirebaseStorage (= 2.1.3)
- FirebaseABTesting (1.0.0):
- FirebaseCore (~> 4.0)
- Protobuf (~> 3.1)
- FirebaseAnalytics (4.1.0):
- FirebaseCore (~> 4.0)
- FirebaseInstanceID (~> 2.0)
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- nanopb (~> 0.3)
- FirebaseAuth (4.5.0):
- FirebaseAnalytics (~> 4.1)
- "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)"
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseCore (4.0.18):
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- FirebaseDatabase (4.1.5):
- FirebaseAnalytics (~> 4.1)
- FirebaseCore (~> 4.0)
- leveldb-library (~> 1.18)
- FirebaseInstanceID (2.0.10):
- FirebaseCore (~> 4.0)
- FirebasePerformance (1.1.2):
- FirebaseAnalytics (~> 4.1)
- FirebaseInstanceID (~> 2.0)
- FirebaseSwizzlingUtilities (~> 1.0)
- GoogleToolboxForMac/Logger (~> 2.1)
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- GTMSessionFetcher/Core (~> 1.1)
- Protobuf (~> 3.5)
- FirebaseRemoteConfig (2.1.2):
- FirebaseABTesting (~> 1.0)
- FirebaseAnalytics (~> 4.0)
- FirebaseCore (~> 4.0)
- FirebaseInstanceID (~> 2.0)
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- Protobuf (~> 3.1)
- FirebaseStorage (2.1.3):
- FirebaseAnalytics (~> 4.1)
- FirebaseCore (~> 4.0)
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseSwizzlingUtilities (1.0.1):
- FirebaseSwizzlingUtilities/ISASwizzling (= 1.0.1)
- FirebaseSwizzlingUtilities/MethodSwizzling (= 1.0.1)
- FirebaseSwizzlingUtilities/ISASwizzling (1.0.1)
- FirebaseSwizzlingUtilities/MethodSwizzling (1.0.1):
- FirebaseCore (~> 4.0)
I see one question about this on Stack Overflow and another one on this repo but neither provide a solution that works for us.
Please let me know what other relevant information i can provide to help figure this out. We haven't been able to build our project ever since 4.12.0 was released and it is becoming a big problem for our team.
Sorry, I haven't been able to get to this - it should be possible to down rev the Swizzler pod version to make this work. Hopefully will be able to give a more thorough answer in the next day or two.
Interesting. So I went back and looked at the Podfile.lock from the last version that worked. It contained
- FirebaseSwizzlingUtilities (1.0.0)
but the pod has changed since then, to:
- FirebaseSwizzlingUtilities (1.0.1):
- FirebaseSwizzlingUtilities/ISASwizzling (= 1.0.1)
- FirebaseSwizzlingUtilities/MethodSwizzling (= 1.0.1)
If I force it back with pod 'FirebaseSwizzlingUtilities', '1.0.0' in the Podfile then it works again...
I'm not sure what about 1.0.1 is causing the error but using 1.0.0 works.
@wbattel4607 Thanks for tracking it down! You found the right workaround.
Unfortunately, it looks like we messed up our versioning and changed an internal API in a patch version update. Sorry about that.
Okay. Glad I could find it (for myself and any others potentially affected).
Thanks for the help. Looking forward to the next release.
Speaking of the next release, @paulb777 do you know if 4.13.1 is going to be released beyond staging or do we have to wait for 5.0.0?
@wbattel4607 It's unlikely we'll release 4.13.1 beyond staging, since we're very focused on 5.0.0
I encountered same issue.
Even if you downgrade to 'FirebaseSwizzlingUtilities', '~> 1.0.0' in podfile, it still installs with 1.0.1
Any workaround for this?
@pushkardeshmukh1992 change 'FirebaseSwizzlingUtilities', '~> 1.0.0' to 'FirebaseSwizzlingUtilities', '1.0.0'
The ~> tells it to use the latest version, not 1.0.0.
why this issue is closed? it is not fixed yet @paulb777
@amrboxit4me This was a Firebase 4.x only issue and Firebase 5.x has been out for several months.
Describe your environment
Xcode version: 9.2
Firebase SDK version: 4.9.0
Firebase Component: _____ (FirebaseAnalytics (4.0.9), FirebaseAuth (4.4.3), FirebaseCore (4.0.15), FirebaseDatabase (4.1.4), FirebaseInstanceID (2.0.9), FirebaseMessaging (2.1.0), etc)
Component version: _____
[REQUIRED] Step 3: Describe the problem
I just installed FirebasePerformance but with automatically installed FirebaseSwizzlingUtilities.
Installing FirebasePerformance (1.1.1)
Installing FirebaseSwizzlingUtilities (1.0.1)
but after installed when I tried to run my app so I got this error

How could I resolve this issue???????
@babuiglesiaskhan See the workaround above https://github.com/firebase/firebase-ios-sdk/issues/1197#issuecomment-385554442
This is still borked :<
Most helpful comment
Interesting. So I went back and looked at the Podfile.lock from the last version that worked. It contained
but the pod has changed since then, to:
If I force it back with
pod 'FirebaseSwizzlingUtilities', '1.0.0'in the Podfile then it works again...I'm not sure what about 1.0.1 is causing the error but using 1.0.0 works.