Linking error when I build for Xcode simulator "Undefined symbols for architecture i386"

I just commented out the particle effects, but no luck, I still get the same error when I try to run it on the Xcode simulator. 

To create the particle effects, I used these instructions: https://coronalabs.com/blog/2014/03/25/tutorial-using-particle-designer-in-corona/

The only other thing I can think of that comes close to a shader is setting the alpha when calling object:setFillColor, but I doubt that is the culprit. 

What happens if you try and build for a device or build and have it do nothing?

Do you get the same error or does it only happen when trying to build for Xcode’s iOS Simulator?

What version of Xcode and OS X are you on?

Thanks

Rob

Thank you for reporting the issue. It appears there is a problem with linking plugins for simulator builds. We will look into it soon, meanwhile, I can recommend to comment out both plugins you’re using in build.settings.

You probably shouldn’t be using the “social” popup for iOS anyway. We have a newer “Activity” plugin which is the same sharing system iOS 7, 8 and 9 uses. For iOS the social plugin requires you to build your own Twitter, Facebook, Sineweibo buttons.  For Android the social plugin brings up a sharing sheet which works. The Activity plugin is the best for iOS.

Rob

I’ve commented out my plugins in build.settings.lua and commented out the corresponding listeners in my code, but I still get the error “ERROR: Builder failed: Undefined symbols for architecture i386:” Once I figure out this error, I will replace my use of the Social plugin with the Activity plugin. Thanks again for your help.

File is just “build.settings”, not “build.settings.lua”. Because I just tried and have same errors as you do. After commenting out whole plugins section (both of them), everything started to work.

Also, linking problems does not depend on what you have in your Lua code (except if it has invalid syntax). Only on contents of build.settings and platform you chose.

Oops, yeah, I meant to type just build.settings. 

After completely deleting the plugins from build.settings (instead of commenting them out) and restarting Corona & Xcode, it finally works. No more linker error and I can run my app in the Xcode simulator. 

Thanks!

Sorry for that. It is still a bug, that you can’t use plugins in simulator. You suppose to be able to do that :slight_smile:

Thank you for reporting.

By the way, try removing the line

[lua]MinimumOSVersion = “7.0”,[/lua]

It may help your problem.