icerockdev / moko-biometry

Biometry authentication with Touch ID, Face ID from common code with Kotlin Multiplatform Mobile
https://moko.icerock.dev
Apache License 2.0
47 stars 6 forks source link

Unable to build ios-app #30

Open khalid64927 opened 6 months ago

khalid64927 commented 6 months ago

When attempting to build the sample iOS app, I encountered the following error consistently across both Xcode and command line:

ld: framework 'Pods_TestProj' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FAILURE: Build failed with an exception.

This issue persists on the master branch. Here are the pertinent version details:

Steps Taken:

In an attempt to resolve the issue, I tried upgrading both Kotlin and Compose versions. However, this resulted in a different error. After adding the @Optin annotation, the build succeeded, but the simulator failed to launch.

Expected Outcome:

I was expecting the demo FaceID app to launch successfully. However, due to my limited familiarity with iOS development, I'm uncertain if testing Face ID on the simulator is feasible without proper Apple entitlements.

Additional Error Details:

Upon further investigation, the build failure was accompanied by the following error message:


* What went wrong:
Execution failed for task ':biometry:compileKotlinIosSimulatorArm64'.
> Compilation finished with errors

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4s
4 actionable tasks: 4 executed
Command PhaseScriptExecution failed with a nonzero exit code