Failed to build iOS App
See original GitHub issueHello, 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
- Clone this repository
- Move to the directory named
ios-base
and run the commandmake init && open DroidKaigi\ 2020.xcworkspace
- Build the project
- 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:
- Created 4 years ago
- Comments:21 (19 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
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 thelocal.properties
file contain value for keysdk.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)