rocketraman
10/20/2020, 6:49 AMFirebase/Auth
dependency. I keep getting the dreaded code 65 error: Executing of 'xcodebuild -project Pods.xcodeproj -scheme Firebase -sdk iphonesimulator -configuration Release' failed with code 65 and message
. Anyone have this working?Even André Fiskvik
10/20/2020, 6:52 AMArtyom Degtyarev [JB]
10/20/2020, 7:05 AMpod(FirebaseAuth)
, there was a big thread on it recently. Also, I found a similar error in this issue, but not sure if it’s related.rocketraman
10/20/2020, 7:21 AMExecuting of 'xcodebuild -project Pods.xcodeproj -scheme FirebaseAuth -sdk iphonesimulator -configuration Release' failed with code 65 and message
Artyom Degtyarev [JB]
10/20/2020, 7:28 AMrocketraman
10/20/2020, 7:35 AMpodBuildDependenciesIosX64
xcodebuild
command directly in the iosApp/Pods
directory works fine.ilya.matveev
10/20/2020, 7:51 AM--scan --info
flags and send us the link to the buildscan?rocketraman
10/20/2020, 7:55 AMilya.matveev
10/20/2020, 8:04 AMxcodebuild
. Could you rerun the build with --info
(or even --debug
) flag to get more detailed logging?rocketraman
10/20/2020, 8:05 AM--info
... let me try againilya.matveev
10/20/2020, 8:08 AMrocketraman
10/20/2020, 8:16 AMFirebaseAuth
from the cocoapod dependencies in gradle. The strange thing is that if I do this, then sometimes the build works, but sometimes I get a linker error on an Objective-C symbol in FirebaseAuth
. This is so confusing...shared.podspec
generated by the gradle podspec
task adds a script phase which does syncFramework
. Running that within xcode works (and I see that it sets a bunch of additional properties starting with kotlin.native.cocoapods.*
). I was trying to run it from the CLI, which results in the code 65 error.ilya.matveev
10/21/2020, 4:27 AMrocketraman
10/21/2020, 2:44 PMilya.matveev
10/24/2020, 9:02 AMcocoapods-generate
plugin is incompatible with CocoaPods 1.10. The Kotlin Gradle plugin relies on cocoapods-generate
to import pod dependencies, so we cannot fix the original issue just by updating CocoaPods. The incompatibility I mentioned is fixed in the master branch of cocoapods-generate
so hopefully we will get a compatible release soon.
Until that, we can use the following workaround. Add this snippet to a buildscript of a Gradle module with shared code:
import org.jetbrains.kotlin.gradle.targets.native.tasks.PodGenTask
....
tasks.withType(PodGenTask::class.java) {
doLast {
val podspecName = project.name.replace("-", "_")
val targetSupportFilesDir = buildDir.resolve(
"cocoapods/synthetic/${kotlinNativeTarget.name}/$podspecName/Pods/Target Support Files"
)
val xcconfigs = fileTree(targetSupportFilesDir) {
include("**/*.xcconfig")
}
xcconfigs.forEach {
it.appendText("CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO")
}
}
}
It will disable the failing compiler diagnostic and fix the original issue.louiscad
10/24/2020, 10:41 AMrocketraman
10/24/2020, 8:07 PMSupport Files/nanopb/nanopb-umbrella.h:13:9: error: double-quoted include "pb.h" in framework
The solution was well explained (and solved) by Ilya above. Thanks again!darkmoon_uk
10/25/2020, 7:28 AMcocoapods-generate
gem, just until their next release, since the compatibility issue with Cocoapods 1.10.0 has been fixed, just not released 😒. I also noted this in #ios channel along with links to the relevant issues.cocoapods-generate
for visibility:
https://github.com/square/cocoapods-generate/issues/83ilya.matveev
10/26/2020, 9:36 AMIs there a YouTrack issue to watch for when this fix makes it into a release on Kotlin side?Indeed, the issue should be fixed at the
cocoapods-generate
side. Although I've opened a YT issue to aggregate all info about this problem: https://youtrack.jetbrains.com/issue/KT-42935. If the cocoapods-generate
release lingers, I think, we will be able to include the workaround above to the CocoaPods Gradle plugin.
the only change required on the Kotlin side relating to this is improving the error reporting of failed xcodebuild callsI've registered it as well: https://youtrack.jetbrains.com/issue/KT-42938
rocketraman
11/17/2020, 10:38 PM