Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Plugins

Plugin fails in iPhone simulator

ShiVa Plugin Development

Plugin fails in iPhone simulator

Postby flippout » 05 Nov 2011, 03:20

Hey all, I get an error when trying to build my project using my new plugin:

ld: warning: ignoring file ...MonkeyDrum_iPad.s3dxproj/Plugins/flippfly_iOS.a, file was built for archive which is not the architecture being linked (i386)

I guess I need to change some setting in my plugin project, or build a simulator version of this library and stick it somewhere?
Has anyone dealt with this before?
flippout
Gold Boarder
Gold Boarder
 
Posts: 279

Re: Plugin fails in iPhone simulator

Postby giggsy » 05 Nov 2011, 11:42

Weird thing is, for some plugins I even get this error for the device, even if I double check that arm6 and 7 are built :/

Any tips welcome too!
Using iOS SDK 5, xCode 4.2 or so and UAT 1.3 beta 4... but was the same issue before upgrading all (SDK+UAT).
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1102
Location: Austria

Re: Plugin fails in iPhone simulator

Postby NiCoX » 05 Nov 2011, 12:09

Hi,

Check that the plug-in's Xcode project contains the x86 target. If not, just add it. Note that you may have to build the x86 target separately, then use lipo to create the "triple" universal library.
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5652
Location: France

Re: Plugin fails in iPhone simulator

Postby makkar » 27 Oct 2012, 09:29

I did also get this i386 error for a plugin. In my case, at least for now for quick testing, I don't need a universal build , I just want to run the plugin in my app in the simulator.

How can I build the plugin to contain only or at least the i386 architecture for the simulator?
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1517


Return to Plugins