Android Compilation
Android builds require the Android SDK, NDK, and Java Development Kit.- Windows
- macOS
Set ANDROID_HOME environment variable
Open a terminal as Administrator and run:Replace the path with your actual folder location.
Download Android Command-line Tools
Download the Android Studio Command-line Tools and extract the ZIP into your Android tools folder.
Install SDK components
Install required SDK components (you may need to restart your terminal):
The latest NDK is not compatible with Lime. You must use NDK 29.0.13113456.
Install JDK 17
Download and install JDK 17 (MSI).
Configure Lime for Android
Run Lime’s Android setup:When prompted, provide these paths:
- Android SDK:
C:\android-tools - Android NDK:
C:\android-tools\ndk\29.0.13113456 - JDK:
C:\Program Files\Java\jdk-17
Android Build Configuration
The Android build is configured inproject.hxp with these settings:
Android-Specific Flags
Exclude ARMv7 Architecture
Exclude ARMv7 Architecture
If you want to reduce APK size by excluding ARMv7 (32-bit ARM):This only includes ARM64, reducing file size but dropping support for older devices.
iOS Compilation
iOS compilation requires Xcode and the iOS SDK.Verify desktop build works
Make sure your game builds on desktop first. See the main compilation guide.
Download iPhone SDK
Open Xcode and download the iPhone SDK when prompted (usually the first thing that appears).
Build for iOS
Build the game and open it in Xcode:
Build for iOS Simulator
Build for iOS Simulator
To test in the simulator instead of a real device:
iOS Troubleshooting
Plugin failed to load
Plugin failed to load
Error:
A required plugin failed to load. Please ensure system content is up-to-date — try running 'xcodebuild -runFirstLaunch'.Solution: Make sure you have the iOS SDK installed (see Step 2 above).No Accounts Error
No Accounts Error
Error:
error: No Accounts: Add a new account in Accounts settings. (in target 'Funkin' from project 'Funkin')Solution:- Open Xcode
- Press
Cmd + ,to open Settings - Select Accounts
- Add your Apple ID
No Account for Team
No Account for Team
Error: Find your Team ID in Xcode under Settings > Accounts.
error: No Account for Team "Z7G7AVNGSH". Add a new account in Accounts settings or verify that your accounts have valid credentials.Solution: Open project.hxp and change IOS_TEAM_ID to your personal team’s ID.Bundle Identifier Error
Bundle Identifier Error
Error:
error: Failed Registering Bundle Identifier: The app identifier "me.funkin.fnf" cannot be registered to your development team because it is not available.Solution: The Funkin’ Crew owns me.funkin.fnf. Open project.hxp and change PACKAGE_NAME to a unique value:No profiles found
No profiles found
Error:
error: No profiles for 'me.funkin.fnf' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'me.funkin.fnf'Solution: Same as Bundle Identifier Error — change the PACKAGE_NAME in project.hxp.Mobile-Specific Build Flags
Mobile builds have several unique feature flags:Most mobile-specific features are enabled by default on mobile builds. Compressed textures are only enabled on release builds.
Next Steps
General Compilation
Return to the main compilation guide
Troubleshooting
Fix common compilation issues
Contributing
Learn how to contribute code
Build Flags
View all available build flags
