Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 ferrer_unity · Aug 28, 2020 at 07:23 PM · iosbuildbuild-errorxcodeframework

XCode Swift Compiler Error Use of Unresolved Identifier "UnitySendMessage" how to fix?


Hello! Please help with my problem.

I'm having trouble solving this swift compiler errors. Especially UnitySendMessage(). Am I missing a plugin or import? Please give me a way how to fix it Been stuck with it for days. Thanks you!


alt text


alt text

screen-shot-2020-08-29-at-31840-am.png (15.1 kB)
screen-shot-2020-08-29-at-31934-am.png (34.2 kB)
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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by jtok4j · Aug 06, 2021 at 12:34 PM

In case anyone was curious as to the "Answer" which failed to include a link to their answer, and instead spammed a link to a spam video site (Big Boss 14)

https://answers.unity.com/questions/1714482/unity3d-project-failed-to-build-for-ios-macos-cata.html ^ There is the link to the mentioned article, but it also doesn't include a fix or an answer.

(After a few hours of searching/testing...........)

FOUND IT: https://github.com/jwtan/SwiftToUnityExample#swift-to-unity-ios-example

The answer is in the "Umbrella Heading" section. Simply read the instructions, to configure the different files in the project, and after that, no more complaints about not being able to understand, "UnitySendMessage". :)

Comment
Add comment · Show 1 · Share
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
avatar image Koval_Ivan · Jan 11 at 09:51 AM 0
Share

Thanks! This worked for me. I used modulemap method from the second link.

avatar image
0

Answer by Shaundev · Sep 10, 2020 at 07:09 PM

Hi, did you manage to find a solution for this? This post talks about the issue: https://forum.unity.com/threads/swift-ios-native-plugins-hurdles.802623/

Look for where it says:

"you need to write an objective-c wrapper class, that you call SendMessage from, and then use your wrapper class in your swift code. Since you can't include the UnityInterface.h file in the swift code"

I'm trying to do this part myself, if you have an example of the objective-c wrapper class needed to fix this it'd be great if you could share it here!

Comment
Add comment · Show 2 · Share
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
avatar image ferrer_unity · Sep 15, 2020 at 07:26 AM 0
Share

Hello shunshun, I didn't fixed the problem yet. If you already fixed, please share it with me, badly need other dev's help, Thank you

avatar image Shaundev · Sep 18, 2020 at 11:22 AM 0
Share

hey @ferrer_unity I had to stop spending time on this but will be looking at it again next week, I'll post on here when I've got some answers

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

183 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 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

Unity iOS build error 0 Answers

arm64 function not 4-byte aligned _unwind_tester from libiphone-lib.a(unwind_test_arm64.o).,106 duplicate symbols -arm64 function not 4-byte aligned _unwind_tester from libiphone-lib.a(unwind_test_arm64.o) 2 Answers

Unity Build ios Xcode unity version missing error 0 Answers

Building to IOS 2 Answers

library not found for -lGoogleUtilities XCode 0 Answers


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