Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After cocopod pod new library , createSwiftPackage fail #49

Open
laisuki1109 opened this issue Jul 6, 2023 · 0 comments
Open

After cocopod pod new library , createSwiftPackage fail #49

laisuki1109 opened this issue Jul 6, 2023 · 0 comments

Comments

@laisuki1109
Copy link

I can compile and build the project with this build.gradle

build.gradle

    android()
    iosX64()
    iosArm64()
    iosSimulatorArm64()
    cocoapods {
        val properties = Properties()
        project.rootProject.file("publish.properties")
            .takeIf { it.exists() }
            ?.run { properties.load(inputStream()) }
        val urlString = properties.getProperty("maven.url")

        summary = "SHKP the point shared module"
        homepage = "Link to the Shared Module homepage"
        version = libraryVersion
        ios.deploymentTarget = "14.1"
        source = urlString
        framework {
            baseName = "thePointShare"
            isStatic = false
        }
        pod("FirebaseAnalytics")
    }
    multiplatformSwiftPackage {
        packageName("ThePointShared")
        swiftToolsVersion("5.3")
        targetPlatforms {
            iOS { v("13") }
        }
        outputDirectory(File(rootDir, "/"))
    }

logcat

Undefined symbols for architecture arm64:
  "_FIRFirebaseVersion", referenced from:
      +[FIRAnalytics topLevelVersion] in FirebaseAnalytics(FIRAnalytics.o)
  "_FIRInstallationIDDidChangeNotification", referenced from:
      +[FIRAnalytics observeFirebaseInstallationIDChanges] in FirebaseAnalytics(FIRAnalytics.o)
  "_GULIsLoggableLevel", referenced from:
      -[APMMonitor isLoggableLevel:] in GoogleAppMeasurement(APMMonitor.o)
  "_GULLogBasic", referenced from:
      -[APMASLLogger logMessage:logTag:messageCode:withLogLevel:] in GoogleAppMeasurement(APMASLLogger.o)
  "_GULLogError", referenced from:
  ..............
### But I cannot create swift package, is anyone solved?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant