Build Errors¶
Common build-time errors and solutions.
Compilation Errors¶
Missing Assembly Reference¶
Error:
Solution: 1. Ensure your assembly references IntelliVerseX.Core 2. Check your .asmdef file includes the dependency
Duplicate Assembly Definition¶
Error:
Solution: - Remove duplicate SDK installations - Check Packages/ folder for conflicts - Clear Library/ folder and reimport
Missing TextMeshPro¶
Error:
Solution: 1. Window → TextMeshPro → Import TMP Essential Resources 2. Restart Unity after import
Android Build Errors¶
Gradle Build Failed¶
Error:
Common Causes:
- Duplicate classes:
- Multiple copies of same JAR/AAR
-
Use
gradleTemplate.propertiesto resolve -
minSdkVersion too low:
-
Missing dependencies:
- Ensure Google Play Services is included
- Check for missing AAR files
MultiDex Required¶
Error:
Solution: In mainTemplate.gradle:
android {
defaultConfig {
multiDexEnabled true
}
}
dependencies {
implementation 'androidx.multidex:multidex:2.0.1'
}
ProGuard/R8 Stripping¶
Error: Runtime crashes after obfuscation.
Solution: Add to proguard-user.txt:
iOS Build Errors¶
Missing Capabilities¶
Error:
Solution: Enable required capabilities in Xcode: - Sign in with Apple (if using Apple auth) - Push Notifications (if using push) - In-App Purchase (if using IAP)
Bitcode Error¶
Error:
Solution: 1. Build Settings → Enable Bitcode → No 2. Or ensure all libraries support bitcode
Cocoapods Issues¶
Error:
Solution:
WebGL Build Errors¶
Stripping Level Too High¶
Error:
Solution: 1. Player Settings → Other Settings → Managed Stripping Level → Minimal 2. Add link.xml:
<linker>
<assembly fullname="IntelliVerseX.Core" preserve="all"/>
<assembly fullname="IntelliVerseX.Backend" preserve="all"/>
<!-- Add other assemblies as needed -->
</linker>
Memory Size¶
Error:
Solution: Player Settings → Publishing Settings: - Memory Size: 512 (or higher) - Enable Exception: Full With Stacktrace (for debugging)
IL2CPP Errors¶
Type Stripping¶
Error:
Solution: Create link.xml in Assets/:
<linker>
<assembly fullname="System.Core">
<type fullname="System.Linq.Expressions.Interpreter.LightLambda" preserve="all" />
</assembly>
<assembly fullname="IntelliVerseX.Core" preserve="all"/>
</linker>
Generic Instantiation¶
Error:
Solution: Force AOT compilation by referencing types:
// Add to a MonoBehaviour that exists in build
void AOTHints()
{
// Force generic instantiation
var _ = new List<MyCustomType>();
}
Package Conflicts¶
Version Mismatch¶
Error:
Solution: 1. Check Packages/manifest.json for version conflicts 2. Update all packages to compatible versions 3. Use Packages/packages-lock.json to lock versions
Conflicting Third-Party SDKs¶
If using multiple SDKs with shared dependencies:
-
Use External Dependency Manager:
-
Remove duplicate DLLs manually
-
Check for namespace conflicts
Still Stuck?¶
- Clear
Library/folder and reimport - Check Unity console for full error
- Search GitHub Issues
- Post on GitHub Discussions