Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by sergeyvklimov · Sep 15, 2019 at 09:10 PM · il2cpplinking

Il2CPP doesn't link platform native library,How to add native platform dependent library to Il2CPP build?

Project builds alright without Il2CPP, I have "select platform for plugin" for native libraries set properly. when I enable Il2CPP, I get errors:

 Sergeis-MBP:EarthDemo darvin$ mono /Applications/Unity/Hub/Editor/2019.2.5f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="MacOSX" --architecture="x64" --configuration="Release" --outputpath="/Users/darvin/Dev/EarthDemo/Temp/StagingArea/Data/Native/GameAssembly.dylib" --cachedirectory="/Users/darvin/Dev/EarthDemo/Assets/../Library/il2cpp_cache" --enable-debugger --profiler-report --map-file-parser="/Applications/Unity/Hub/Editor/2019.2.5f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/darvin/Dev/EarthDemo/Temp/StagingArea/Data/Managed" --generatedcppdir="/Users/darvin/Dev/EarthDemo/Temp/StagingArea/Data/il2cppOutput" 
 Building GameAssembly.dylib with ClangToolChain
     Mac Dev SDK: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 
     Output directory: /Users/darvin/Dev/EarthDemo/Temp/StagingArea/Data/Native
     Cache directory: /Users/darvin/Dev/EarthDemo/Library/il2cpp_cache
 ObjectFiles: 337 of which compiled: 0
 Total compilation time: 597 milliseconds.
 il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: /usr/bin/ld -o "/Users/......
 ........
 Undefined symbols for architecture x86_64:
   "_vtsSearchUpdateDistances", referenced from:
       _BrowserInterop_vtsSearchUpdateDistances_m131226DB2F3015366AE79E25F9D1DDD301A09B81 in 0161041EF7F4CEF47920DB28E86A421F.o
      (maybe you meant: _BrowserInterop_vtsSearchUpdateDistances_m131226DB2F3015366AE79E25F9D1DDD301A09B81)
   "_vtsSearchGetResultsCount", referenced from:
       _BrowserInterop_vtsSearchGetResultsCount_m3CA871975A920CE5EBC78664E0BFCEF2317C3D8B in 0161041EF7F4CEF47920DB28E86A421F.o
      (maybe you meant: _BrowserInterop_vtsSearchGetResultsCount_m3CA871975A920CE5EBC78664E0BFCEF2317C3D8B)
   "_vtsSearchDestroy", referenced from:

clearly my library is not being linked.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

110 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Problems accessing a function 1 Answer

OSX: How to link GameKit framework? 0 Answers

[il2cpp] Crash after login game center in sand box build!! 1 Answer

ExecutionEngineException - Error at iOS Runtime with parse.com SDK 0 Answers

Solved: Unity 5 iOS export with IL2CPP fail 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges