Latest 2 daily builds keep throwing this weird error (prevents building)

I’m trying to build an iOS binary and until daily build 2515 this was ok. Now I’m getting this:

00000150.png

Hi Matt,

Which plugins are you using in this app?

Brent

 plugins = { ["CoronaProvider.native.popup.social"] = { publisherId = "com.coronalabs", }, ["plugin.viewer"] = { publisherId = "com.coronalabs", }, ["facebook"] = { publisherId = "com.coronalabs", }, ["CoronaProvider.native.popup.addressbook"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, ["CoronaProvider.analytics.flurry"] = { publisherId = "com.coronalabs", }, ["CoronaProvider.ads.inneractive"] = { publisherId = "com.inner-active", }, },

Hi Brent, Im having the same issue related to this post. http://forums.coronalabs.com/topic/53253-cant-build-app-for-ios-with-social-plugin-but-it-works-whitout-it/#entry276777

I’ve just managed to build for iOS just fine with an app which has no plugins. I tried removing the CoronaViewer plugin from the problem app (don’t know why it was there to begin with) and it’s fine, too. I’m now seeing this error when trying to build the CoronaViewer app:

Dec 13 07:11:22.782: Runtime error /Users/eudoxus/Desktop/Payload/CoronaViewer.app/.build/libtemplate/Builder.lua:310: \<error\>{"status":256,"message":"ld: framework not found Dropbox\nclang: error: linker command failed with exit code 1 (use -v to see invocation)"}\</error\> stack traceback: [C]: ? [C]: in function 'assert' /Users/eudoxus/Desktop/Payload/CoronaViewer.app/.build/libtemplate/Builder.lua:310: in function 'checkError' /Users/eudoxus/Desktop/Payload/CoronaViewer.app/.build/libtemplate/Builder.lua:333: in function 'build' ?: in function 'buildExe' ?: in function \<?:641\> Dec 13 07:11:22.789: iOS build failed (5)

Which, to me, implies a problem with the CoronaViewer plugin.

We know there are issues building with the CoronaViewer plugin.  Engineering is working on it.

Rob

Hi Rob and Brent, Im still unable to build for iOS using the social plugin or the corona viewer. What can I do? Still getting the same error messege. "Dec 21 16:57:33.873: Runtime error

/Users/sambavi/Desktop/CoronaViewer.app/.build/libtemplate/Defaults.lua:96: ERROR: Could not determine installed version of iOS SDK.

stack traceback:

C: in function ‘assert’

/Users/sambavi/Desktop/CoronaViewer.app/.build/libtemplate/Defaults.lua:96: in function ‘updateSDK’

/Users/sambavi/Desktop/CoronaViewer.app/.build/libtemplate/Defaults.lua:124: in function ‘updateSDK_iPhoneSimulator’

/Users/sambavi/Desktop/CoronaViewer.app/.build/libtemplate/Builder.lua:225: in function ‘compile’

/Users/sambavi/Desktop/CoronaViewer.app/.build/libtemplate/Builder.lua:333: in function ‘build’

?: in function ‘buildExe’

?: in function <?:683>

Dec 21 16:57:33.876: iOS build failed (5)

What version of Corona SDK are you using?   This also sounds like a bad Xcode install.   Do you have Xcode 6 and later installed?

Rob

Im using the latest daily build, I have tried all the way from daily build 2511 up until now. Im using the latest update for xcode Version 6.1.1 (6A2008a), removed all xcode temp files and and unnecessary files and checked the path for xcode. You think a reinstall of xcode is necessary?

The error says we can’t determine the iOS SDK, which means that the SDK Files are not where we are expecting them to do be.

It wouldn’t hurt to fresh install Xcode.

Rob

I will try that right away, can I just ask. Why would there be a difference in using xcode as a simulator and building with a plugin? Because building for xcode or the phone whit out the plugin works?

There may not be.

Rob

Just as a test, I added those two plugins into a project and built it and it built with no errors.

Rob

Reinstalled xcode but the the issue is still there  :angry: Before I installed it I made sure the core simulator folder and xcode folder was clean.

Ive just tried the socialplugin testcode from github and Im getting this warning instead. The first line is saying that xcode is in the wrong location, but thats old location before the reinstall. The rest I don’t understand but it sounds like you said before that its not finding xcode like it should? But I have no idea how to fix this if a fresh install doesn’t fix it?

Dec 22 05:11:45.325: xcode-select is set to an invalid location: /Applications/DevTools/Xcode.app/Contents/Developer

Dec 22 05:11:45.327: Using additional build settings from: /Users/sambavi/Desktop/DevFolder/Training/Corona/Test Apps/fb/testFacebook/build.settings

Dec 22 05:11:45.395: WARNING: Using the following SDK instead: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk

Dec 22 05:11:45.398: WARNING: Using the following SDK instead: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk

Dec 22 05:11:45.401: Runtime error

/Users/sambavi/Desktop/testFacebook.app/.build/libtemplate/Builder.lua:310: <error>{“status”:32512,“message”:“sh: /Applications/DevTools/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++: No such file or directory”}</error>

stack traceback:

C: in function ‘assert’

/Users/sambavi/Desktop/testFacebook.app/.build/libtemplate/Builder.lua:310: in function ‘checkError’

/Users/sambavi/Desktop/testFacebook.app/.build/libtemplate/Builder.lua:333: in function ‘build’

?: in function ‘buildExe’

?: in function <?:683>

Dec 22 05:11:45.404: iOS build failed (5)

ok, I got it to work  :smiley:  apprently xcode doesn’t delete all files even i derived folder and core simulator is deleted. But found them and deleted them and now it works, it was a big chache folder and and a file called “com.apple.dt.Xcode.plist” that was being left behind. Thanks for the help Rob. Do you know if xcode has to be in its original location for the plugins to work?

Good to have a solution. Weird it only affects one pkugin

Xcode needs to be where Xcode expects to be.  You can have multiple versions, for instance the current version and a beta version.  Which version Xcode uses is determined by the command:   xcode-select

You can do a: 

xcode-select -print-path

For a standard install from the Mac App store, the result should be:

/Applications/Xcode.app/Contents/Developer

If it’s not pointing there, you can make it by:

xcode-select -s /Applications/Xcode.app/Contents/Developer

Rob

Hi Matt,

Which plugins are you using in this app?

Brent

 plugins = { ["CoronaProvider.native.popup.social"] = { publisherId = "com.coronalabs", }, ["plugin.viewer"] = { publisherId = "com.coronalabs", }, ["facebook"] = { publisherId = "com.coronalabs", }, ["CoronaProvider.native.popup.addressbook"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, ["CoronaProvider.analytics.flurry"] = { publisherId = "com.coronalabs", }, ["CoronaProvider.ads.inneractive"] = { publisherId = "com.inner-active", }, },