Build error when trying to build for device

Since today, whenever I try to build any app, i get this error:

2014-09-25 14:07:20.271 Corona Simulator[219:e03] Using Custom Build Id 00000 Using additional build settings from: /Users/rdb/Desktop/Corona/Slingo/build.settings WARNING: Your SDK may be out of date b/c the following SDK directory could not be found: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk WARNING: Using the following SDK instead: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk WARNING: Your SDK may be out of date b/c the following SDK directory could not be found: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk WARNING: Using the following SDK instead: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk 2014-09-25 14:07:39.141 Corona Simulator[219:e03] Runtime error /Users/rdb/Desktop/Slingo.app/.build/libtemplate/Builder.lua:310: \<error\>{"status":256,"message":"Undefined symbols for architecture armv7:\n \"\_OBJC\_CLASS\_$\_UIPercentDrivenInteractiveTransition\", referenced from:\n \_OBJC\_CLASS\_$\_GADPercentDrivenUserInteractionAnimationController in libgoogle-play-services.a(GADPercentDrivenUserInteractionAnimationController.o)\n \"\_OBJC\_METACLASS\_$\_UIPercentDrivenInteractiveTransition\", referenced from:\n \_OBJC\_METACLASS\_$\_GADPercentDrivenUserInteractionAnimationController in libgoogle-play-services.a(GADPercentDrivenUserInteractionAnimationController.o)\n \"\_UITransitionContextFromViewControllerKey\", referenced from:\n -[GADViewControllerFullScreenSwipeAnimation animateTransition:] in libgoogle-play-services.a(GADViewControllerFullScreenSwipeAnimation.o)\n -[GADViewControllerFullScreenSwipeAnimation animationContextForRestoringAnimationToSavedState:] in libgoogle-play-services.a(GADViewControllerFullScreenSwipeAnimation.o)\n \"\_UITransitionContextToViewControllerKey\", referenced from:\n -[GADViewControllerFullScreenSwipeAnimation animateTransition:] in libgoogle-play-services.a(GADViewControllerFullScreenSwipeAnimation.o)\n -[GADViewControllerFullScreenSwipeAnimation animationContextForTopToBottomAnimationPresentationWithTransitionContext:] in libgoogle-play-services.a(GADViewControllerFullScreenSwipeAnimation.o)\n -[GADViewControllerFullScreenSwipeAnimation animationContextForBottomToTopAnimationPresentationWithTransitionContext:] in libgoogle-play-services.a(GADViewControllerFullScreenSwipeAnimation.o)\nld: symbol(s) not found for architecture armv7\nclang: error: linker command failed with exit code 1 (use -v to see invocation)"}\</error\> stack traceback: [C]: ? [C]: in function 'assert' /Users/rdb/Desktop/Slingo.app/.build/libtemplate/Builder.lua:310: in function 'checkError' /Users/rdb/Desktop/Slingo.app/.build/libtemplate/Builder.lua:333: in function 'build' ?: in function 'buildExe' ?: in function \<?:636\>

The only thing I recently changed, is upgrading one of my iPads to iOS 8.

Using Corona 2014.2401

build.settings:

settings = { plugins = { ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", }, ["facebook"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone = true }, }, }, orientation = { default = "portrait", supported = { "portrait" } }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, }, iphone = { plist = { UIAppFonts = { "walibi-holland.ttf", }, CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, UIApplicationExitsOnSuspend = false, -- must be false for single sign-on to work CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXX", -- replace XXXXXXXXX with your facebook appId, make sure that you leave fb in front of it } } } } } }
android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE",a }, },

maybe the letter ‘a’ after android.permission.ACCESS_NETWORK_STATE causes the issue?

Nope, that was a typo when writing the message :slight_smile:

Installed the latest Corona SDK 2014.2445, same error, but the popup message now says: Error code 5, if you’re not connecting to the Internet directly, you might try a direct connection.

BTW: I can build for Android on Windows with the same source code.

Cant build for the device.

Have latest daily build 2446.

9/28/14 2:39:51.793 PM Corona Simulator[135]: Runtime error

/Users/ubj3d/Desktop/Halloween¬†Find¬†The¬†Pair.app/.build/libtemplate/Builder.lua:310: <error>{“status”:256,“message”:“ld: framework not found Metal for architecture armv7\nclang: error: linker command failed with exit code 1 (use -v to see invocation)”}</error>

stack traceback:

C: in function ‘assert’

/Users/ubj3d/Desktop/Halloween¬†Find¬†The¬†Pair.app/.build/libtemplate/Builder.lua:310: in function ‘checkError’

/Users/ubj3d/Desktop/Halloween¬†Find¬†The¬†Pair.app/.build/libtemplate/Builder.lua:333: in function ‘build’

?: in function ‘buildExe’

?: in function <?:643>

I fixed it by updating XCode

I just ran into this issue myself.  Rather frustrating when I was still using the last public release and things suddenly break in the background like that.  

Thanks for tracking down the fix rmbsoft!

Scratch that, still getting this error.  I’m using the latest public release, 2393, and Xcode 6.01.  The same code builds just fine for Android.

Here’s the error message I’m getting:

2014-09-29 10:20:11.559 Corona Simulator[1845:507] 

Copyright © 2009-2014  C o r o n a   L a b s   I n c .

2014-09-29 10:20:11.559 Corona Simulator[1845:507]  Version: 3.0.0

2014-09-29 10:20:11.560 Corona Simulator[1845:507]  Build: 2014.2393

Using additional build settings from: /Users/user23020/Dropbox/J&J Studios LLC/myApp/build.settings

2014-09-29 10:22:27.434 Corona Simulator[1845:507] Runtime error

/Users/user23020/Desktop/myApp.app/.build/libtemplate/Builder.lua:310: <error>{“status”:256,“message”:“ld: framework not found Metal for architecture armv7\nclang: error: linker command failed with exit code 1 (use -v to see invocation)”}</error>

stack traceback:

C: in function ‘assert’

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

/Users/user23020/Desktop/myApp.app/.build/libtemplate/Builder.lua:333: in function ‘build’

?: in function ‘buildExe’

?: in function <?:624>

I also updated to OSX 10.9.5 first, but that didn’t fix my probl;em until I updated XCode.

Are you using the latest Corona Build?

If you use any plugins, try to remove them one by one to see if that makes a difference.

Good call on the plugins rmbsoft.  Looks like the adbuddiz plugin was causing the issue for me.  As soon as I commented that out it built just fine.  I’m using the latest public release, 2393a, and OSX 10.9.5.

Thanks for the help!

Build 2014.2468

XCode 6.0.1

I’m still getting this error.  Anyone figure it out?

We are going to need a project that has this error and filed as a bug report to track this down.  When submitting the bug report, please make sure to include your build.settings and config.lua as well as any assets needed to make it work.

Please post the bug ID back here when you get the email from the bug tracker.

Rob

android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE",a }, },

maybe the letter ‘a’ after android.permission.ACCESS_NETWORK_STATE causes the issue?

Nope, that was a typo when writing the message :slight_smile:

Installed the latest Corona SDK 2014.2445, same error, but the popup message now says: Error code 5, if you’re not connecting to the Internet directly, you might try a direct connection.

BTW: I can build for Android on Windows with the same source code.

Cant build for the device.

Have latest daily build 2446.

9/28/14 2:39:51.793 PM Corona Simulator[135]: Runtime error

/Users/ubj3d/Desktop/Halloween¬†Find¬†The¬†Pair.app/.build/libtemplate/Builder.lua:310: <error>{“status”:256,“message”:“ld: framework not found Metal for architecture armv7\nclang: error: linker command failed with exit code 1 (use -v to see invocation)”}</error>

stack traceback:

C: in function ‘assert’

/Users/ubj3d/Desktop/Halloween¬†Find¬†The¬†Pair.app/.build/libtemplate/Builder.lua:310: in function ‘checkError’

/Users/ubj3d/Desktop/Halloween¬†Find¬†The¬†Pair.app/.build/libtemplate/Builder.lua:333: in function ‘build’

?: in function ‘buildExe’

?: in function <?:643>

I fixed it by updating XCode

I just ran into this issue myself.  Rather frustrating when I was still using the last public release and things suddenly break in the background like that.  

Thanks for tracking down the fix rmbsoft!

Scratch that, still getting this error.  I’m using the latest public release, 2393, and Xcode 6.01.  The same code builds just fine for Android.

Here’s the error message I’m getting:

2014-09-29 10:20:11.559 Corona Simulator[1845:507] 

Copyright © 2009-2014  C o r o n a   L a b s   I n c .

2014-09-29 10:20:11.559 Corona Simulator[1845:507]  Version: 3.0.0

2014-09-29 10:20:11.560 Corona Simulator[1845:507]  Build: 2014.2393

Using additional build settings from: /Users/user23020/Dropbox/J&J Studios LLC/myApp/build.settings

2014-09-29 10:22:27.434 Corona Simulator[1845:507] Runtime error

/Users/user23020/Desktop/myApp.app/.build/libtemplate/Builder.lua:310: <error>{“status”:256,“message”:“ld: framework not found Metal for architecture armv7\nclang: error: linker command failed with exit code 1 (use -v to see invocation)”}</error>

stack traceback:

C: in function ‘assert’

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

/Users/user23020/Desktop/myApp.app/.build/libtemplate/Builder.lua:333: in function ‘build’

?: in function ‘buildExe’

?: in function <?:624>

I also updated to OSX 10.9.5 first, but that didn’t fix my probl;em until I updated XCode.

Are you using the latest Corona Build?

If you use any plugins, try to remove them one by one to see if that makes a difference.

Good call on the plugins rmbsoft.  Looks like the adbuddiz plugin was causing the issue for me.  As soon as I commented that out it built just fine.  I’m using the latest public release, 2393a, and OSX 10.9.5.

Thanks for the help!

Build 2014.2468

XCode 6.0.1

I’m still getting this error.  Anyone figure it out?