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
3
Question by moghes · Sep 17, 2013 at 08:51 AM · importxcodenativeunity ios

Include IOS frameworks in unity instead of xcode

Hello everyone,

I have delevoped a game in unity and have Facebook integration, inapp purchase, splash adds ...and others , done with native code, being succesfull to comunicate unity C# with Ocjective-C ...

But the process seems ungly in 1 aspect, so whenever I need to move a button 1 pixel, I have to import my custom frameworks all over in xcode, which is a time consuming process and doing the same task all over again.

There must be a way to import them directly to unity, and being free to modify anything in unity..

Any ideas or alternatives? Thanks in advance

Comment
Add comment · Show 3
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 Graham-Dunnett ♦♦ · Sep 17, 2013 at 03:01 PM 0
Share

Don't you just use the Append option when you make the build? That should update the XCode project with the Unity changes.

avatar image moghes · Sep 17, 2013 at 09:31 PM 0
Share

honestly no, i'm familiar enough to unity but new to integrating native code with unity. I will try that, Does it have a similar process with eclipse for androind as well?

avatar image Umai · Dec 04, 2014 at 02:00 AM 0
Share

Did you figure this out?

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by kumarc123 · Sep 18, 2013 at 07:27 AM

Whenever you're building your plugins make sure that all of your code is working properly.

Once you're sure enough, just copy those files in Unity's Assets/Plugins/iOS/ folder. If there is no folder just create it.

if you copy all your files to ios plugins folder then even after replacing your build you won't loose your plugins and you don't have to copy each time you build.

As mentioned in one comment, you can also skip copying to ios plugins folder. But make sure to create all classes or whatever which is native to Classes folder of your Xcode project. Then you can use Append while building your project.

To Append build just press CMD+B it will append automatically

One more thing to mention, To make plugins for Facebook you don't have to write your native code now. Facebook itself provides you all things needed for iOS, Android and Web Player as I know. I am using Facebook-Unity plugin only.

Comment
Add comment · Show 3 · 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 Umai · Dec 04, 2014 at 01:34 AM 0
Share

What are you talking about? I don't think you're supposed to copy internal iOS frameworks into your Unity project's Assets folder. If that's what you meant.

avatar image kumarc123 · Dec 06, 2014 at 02:58 PM 0
Share

I forgot to mention. In Unity you can write one postprocess build script which creates / updates references to iOS frameworks.

avatar image green-giant · Nov 29, 2018 at 11:01 PM 0
Share

For some reason when I append the build it drops my reference to CoreLocation.framework even though it preserves libsqlite3.tbd

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

19 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

Related Questions

is there a way to link .NET dll base on platform? 0 Answers

Unity -> Xcode 'Unknown Error Occurred' after it says running on device 3 Answers

Embedding an application in Xcode 11.1. storyboard 0 Answers

Unity iOS Build to Xcode - What Next? 1 Answer

unity3d auto import xcode framework 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