question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to build iOS App

See original GitHub issue

Hello, I would like you to tell me why I failed to build iOS App. The details are as follows. I know that you are busy, so I am sorry for your inconvenience.

Overview (Required)

  • Failed to build iOS App like the issue (#514)

Steps To Reproduce

  1. Clone this repository
  2. Move to the directory named ios-base and run the command make init && open DroidKaigi\ 2020.xcworkspace
  3. Build the project
  4. See error
Showing All Messages
FAILURE: Build failed with an exception.



* What went wrong:

A problem occurred configuring project ':android-base'.

> kotlin.KotlinNullPointerException (no error message)



* 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 7.0.

Use '--warning-mode all' to show the individual deprecation warnings.

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



BUILD FAILED in 755ms

mkdir: /Users/k_muta/Documents/conference-app-2020/ios-base/build: File exists

cp: /Users/k_muta/Documents/conference-app-2020/ios-base/../ios-combined/build/bin/iosX64/debugFramework/ios_combined.framework: No such file or directory

Env:

  • OS: Mac OS Mojave
  • Tool: Xcode 11.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21 (19 by maintainers)

github_iconTop GitHub Comments

3reactions
KaoruMutacommented, Feb 4, 2020

@takahirom (CC: @ry-itto @roana0229 ) I just build successfully!! I reinstall java8 and set the path by running this command export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home again. As a result, I did it😭😭

Sorry for bothering you…

If I have time and a chance to contribute your app, I will try it!

Thanks a lot😭😭

Kaoru Muta

2reactions
jonas-mscommented, Aug 18, 2020

In case someone else encounters the same problem (for any Android project)…

For me the cause was that ANDROID_HOME environment variable was not set, nor did the local.properties file contain value for key sdk.dir.

Setting either of these variables to point to the where the Android SDK is installed - fixes the issue.

This issue appears when the project has data binding enabled and even for Gradle tasks that don’t use the Android SDK for anything.

So, for example, if you want to execute such a Gradle task on an environment that doesn’t have any Android SDK installed - you can set ANDROID_HOME to any path (eg: ANDROID_HOME=/tmp) and it will work (provided that the task you’ll be running doesn’t require Android SDK)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to build iOS app Error output from Xcode build
My project was working good, but after upgrading, I am facing bellow errors while trying to run in simulator! Xcode build done. 19.8s...
Read more >
Build Failed — but no reason!
Hi, I'm experiencing weird Xcode behavior. I'm getting "build failed" after some alterations to the code, but Xcode will NOT give me the...
Read more >
Failed to build iOS app Error output from Xcode build
when I run on my iphoneX , show these error ,how to fix it ? Logs Failed to build iOS app Error output...
Read more >
Failed to build iOS app Error output from Xcode build
I had the same issue after upgrading to Flutter 1.22.4 stable channel . It's now working good after doing this: flutter clean; Delete...
Read more >
error failed to build ios project. we ran "xcodebuild ...
error failed to build ios project. we ran "xcodebuild" command but it exited with error code 65. to debug build logs further, consider...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found