Dmitry Stakhov
12/01/2023, 9:38 AM$ xcodebuild -scheme Domains clean build test -destination 'platform=iOS Simulator,name=iPhone 15 Pro'It's failing because of the Firebase Performance architecture.
Testing failed:
xctest (48692) encountered an error (Failed to load the test bundle. (Underlying Error: The bundle “DomainsTests” couldn’t be loaded. The bundle couldn’t be loaded. Try reinstalling the bundle. dlopen(/Users/shota.kashihara/Library/Developer/Xcode/DerivedData/Domains-abthyxddkyuzjwewpeoxlemgilzk/Build/Products/Debug-iphonesimulator/DomainsTests.xctest/DomainsTests, 0x0109): Library not loaded: @rpath/FirebasePerformance.framework/FirebasePerformance
Referenced from: <F8527067-FD15-37CF-B2EE-A4F0DD9CC4D4> /Users/shota.kashihara/Library/Developer/Xcode/DerivedData/Domains-abthyxddkyuzjwewpeoxlemgilzk/Build/Products/Debug-iphonesimulator/AppPlatform.framework/AppPlatform
Reason: tried: '/Users/shota.kashihara/Library/Developer/Xcode/DerivedData/Domains-abthyxddkyuzjwewpeoxlemgilzk/Build/Products/Debug-iphonesimulator/FirebasePerformance.framework/FirebasePerformance' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have 'i386,x86_64,arm64', need 'arm64'))...Does anyone have the idea of the issue reason? My configuration: Module build.script.kts
plugins {
`kotlin-native-cocoapods`
}
kotlin {
jvmToolchain(8)
applyDefaultHierarchyTemplate()
sourceSets {
iosX64()
iosArm64()
iosSimulatorArm64()
cocoapods {
pod("FirebasePerformance")
ios.deploymentTarget = "12.0"
}
}
}
Umbrella module build.script.kts
plugins {
`kotlin-native-cocoapods`
}
kotlin {
jvmToolchain(17)
applyDefaultHierarchyTemplate()
sourceSets {
iosX64()
iosArm64()
iosSimulatorArm64()
cocoapods {
name = "AppPlatform"
ios.deploymentTarget = "12.0"
framework {
baseName = "AppPlatform"
isStatic = false
export(projects.libs.firebaseModule)
embedBitcode = BitcodeEmbeddingMode.DISABLE
transitiveExport = true
}
}
pod("FirebasePerformance", linkOnly = true)
}
}