BUILD ERROR: There was a problem linking the app.

Hi, I’m using Corona 3474 with Xcode 10.2.1 (IOS 12.2).
I got this error today. And it didn’t happen last week.

The log is below:

https://pastebin.com/LHnRACww

This is my build settings:

settings = { build = { neverStripDebugInfo = true }, plugins = { ["plugin.firebaseAnalytics"] = { publisherId = "tech.scotth" }, ["plugin.firebaseConfig"] = {publisherId = "tech.scotth"}, ["plugin.kochava"] = { publisherId = "com.coronalabs",}, ["plugin.reviewPopUp"] = {publisherId = "tech.scotth"}, ["plugin.iCloud"] = { publisherId = "com.coronalabs",supportedPlatforms = { iphone=true, osx=true, appletvos=true }}, ["plugin.notifications"] = { publisherId = "com.coronalabs" }, ["plugin.advertisingId"] = { publisherId = "com.coronalabs" }, -- Apple only ["plugin.chartboost"] = { publisherId = "com.swipeware" }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.amazon.iap"] = { publisherId = "com.coronalabs", supportedPlatforms={ ["android-kindle"]=true} }, ["plugin.CoronaSplashControl"] = { publisherId = "com.coronalabs" }, ["plugin.zip"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.native.popup.activity"] = {publisherId = "com.coronalabs", supportedPlatforms = { iphone=true } }, ["CoronaProvider.native.popup.social"] = { publisherId = "com.coronalabs" }, }, splashScreen = { enable = false }, orientation = { default = "landscapeRight", supported = {"landscapeRight", "landscapeLeft"} -- "portrait", "portraitUpsideDown"} }, iphone = { xcassets = "Images.xcassets", plist = { ITSAppUsesNonExemptEncryption = false, NSMicrophoneUsageDescription = 'This app features voice recording games.', NSPhotoLibraryUsageDescription = "This app would like to access the photo library.", NSPhotoLibraryAddUsageDescription = "This app would like to add the photo library.", NSCameraUsageDescription = "Used to scan QR codes and barcodes.", NSAppTransportSecurity = { NSExceptionDomains = { -- DK toolbox ["sp-cert.tbxnet.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["sp.tbxnet.com/v2"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["unity.tbxapis.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["unity-cert.tbxapis.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, --GEO IP DOMAINS TO ALLOW ["freegeoip.net"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, -- for webViewSocket on ios 9 ["localhost"] = { NSExceptionAllowsInsecureHTTPLoads = true, NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["key.i-learn.vn"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, -- ["studycat.cn"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, -- ["members.studycat.cn"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["api.studycat.net"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["info.studycat.net"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["myip.dnsomatic.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["integrator.imusica.com.br"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["hmg.integrator.imusica.com.br"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["telize.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["ipinfo.io"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["volume.itunes.apple.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["apps.studycat.net"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["subs.studycat.net"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["apple.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["coronalabs.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["api.dev.funenglishjr.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["funenglishjr.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["api.funenglishjr.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["funenglishjr.cn"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["api.funenglishjr.cn"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["dynamodb.ap-southeast-1.amazonaws.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["dynamodb.us-west-2.amazonaws.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["cognito-idp.ap-southeast-1.amazonaws.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["dynamodb.us-west-2.amazonaws.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["cognito-idp.us-west-2.amazonaws.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["maxcdn.bootstrapcdn.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, ["google-analytics.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, }, }, UIStatusBarHidden = true, UIPrerenderedIcon = true, CFBundleIdentifier = "net.studycat.scamp", CFBundleDisplayName = "SCAMP", CFBundleVersion = "1", -- use date CFBundleShortVersionString = "1.0", UILaunchStoryboardName = "LaunchScreen", CFBundleLocalizations = { "en", "gb", "fr", "de", "it", "es", "pt", "ja", "zh-Hans", "zh-Hant", --"ar", "da", "nl", "fi", "ko", "nb", "ru", "sv", "tr", "vi", }, } }, android = { strings = { ["google\_app\_id"] = "build-script-replaces-this" }, useGoogleServicesJson = true, supportsScreens = { smallScreens = true, normalScreens = true, largeScreens = true, xlargeScreens = true, }, intentFilters = { { actions = { "android.intent.action.VIEW" }, categories ={ "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = {scheme = "https", host = "funenglishjr.cn", pathPrefix="/login" }, }, { actions = { "android.intent.action.VIEW" }, categories ={ "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = {scheme = "http", host = "funenglishjr.cn", pathPrefix="/login" }, }, { actions = { "android.intent.action.VIEW" }, categories ={ "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = {scheme = "https", host = "studycat.cn", pathPrefix = "/fejr/login" }, }, { actions = { "android.intent.action.VIEW" }, categories ={ "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = {scheme = "http", host = "studycat.cn", pathPrefix = "/fejr/login" }, }, }, largeHeap = true, -- only takes effect on android 3.0 and above. usesExpansionFile = false, -- overwritten by build script -- versionCode = 3, TODO: this should be manipulated by build script. usesPermissions = { "com.android.vending.BILLING", "android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.RECORD\_AUDIO", "android.permission.CAMERA", "android.permission.ACCESS\_NETWORK\_STATE" }, }, window = { titleText = { default = "Fun English for Schools", }, suspendWhenMinimized = true, enableCloseButton = true, enableMinimizeButton = true, defaultMode = "fullscreen", minViewWidth = 1280, minViewHeight = 720, }, osx = { entitlements = { ["com.apple.security.assets.pictures.read-write"] = true, }, }, }

I need to release this app before Apple goes on vacation.
Any help will be appreciated!
 

It looks like a problem with the firebase plugins. So i would start with commenting out those two plugins and see if it will build:

 ["plugin.firebaseAnalytics"] = { publisherId = "tech.scotth" }, ["plugin.firebaseConfig"] = {publisherId = "tech.scotth"}

I believe I saw other posts from Scott where he’s fixing some issues on iOS 13.

Rob

Ever since this post there has been one issue after another with plugins. Not only Scotts, but also Facebook and now for the last couple of days, I haven’t been able to make a successful build with any plugins. I keep getting the error… There was a problem linking the app.

I updated to Corona 2020.3575, but the problem is still there.

Here is a list of plugins:

            --[“plugin.utf8”] = { publisherId = “com.coronalabs” },

            --[“plugin.openssl”] = { publisherId = “com.coronalabs” },

            --[“CoronaProvider.native.popup.social”] = { publisherId = “com.coronalabs” },

            --[“CoronaProvider.native.popup.activity”] = { publisherId = “com.coronalabs” },

            

            --[“plugin.notifications”] = { publisherId = “com.coronalabs” },

            --[“plugin.nanosvg”] = { publisherId = “com.coronalabs” },

 

            --[[

            [“plugin.facebook.v4a”] =

            {

                    publisherId = “com.coronalabs”,

                    supportedPlatforms = { iphone=true, android=true, [“android-kindle”]=true }

            },

            --]]

 

            --[“plugin.tapticEngine”] = { publisherId = “tech.scotth” },

            --[“plugin.contacts”] = { publisherId = “tech.scotth”, supportedPlatforms = { iphone=true, android=true } },

The build works fine when I disable them all, but if just one is enabled, it breaks.

Another problem also appears now and so often… 

A device build error occurred on the server. 

 

Error: Template not found.

 

Build Number: 2020.3575

Platform: iphone

Platform Version: 13.2

Template Type: basic

BuildID: 5e4cff5c562ce

 

Please look into this. I can’t be the only Corona developer experiencing this? 

No. You are not. I’m experiencing the same problems, there is no way to build a build because of “There was a problem linking the app” error, the second error “Template not found” shows up sometimes, but in many cases it is possible to push it away be restarting Corona SDK. The ‘problem linking the app’ appears only in last daily builds: 2020.3574 and 2020.3575, on 3550 all works fine. But “Template not found” happens on old daily builds as well.

In my case the “There was a problem linking the app” error is caused by AdMob plugin. If I remove it from build.setting all works fine. So it looks like that plugin creates some conflicts.

Thank you… I’ll downgrade, I did however also experience it occasionally on a older build, but now I can’t remember the version.

I will be happy to ask Vlad to look at this, but we will need the build.settings you are using when you get the error. And you need to copy/paste your entire console log from the build. Please use pastebin.com or similar to paste the console log and then paste the link back here.

We also need to know if you’re on a Mac or Windows and the target you are building for as well as the version.

Rob

You got everything needed. Everything works fine with 3550… and I already spent plenty of time disabling each plugin listed individually to see it happens to ALL plugins, including Coronas own. My code worked fine before updating.

The problem should be pretty easy to recreate with any sample, like Coronas own Facebook sample, or adding any plugin to your own code. The list above is the complete plugin list I use, just reenable/enable anyone one with 3575 and see the problem. I moved on, moving back to an older version.

I use Mac and build to iPhone.

I never understood, why build errors like this, is not automatically flagged by your servers? It has happened all weekend and to the looks of the posts above, to more people than me.

I’ve done several tests and it looks like there is a conflict between firebase plugin and admob plugin. If I remove any of them from the build.settings all works perfectly without any errors.

The error log it too large to paste it here (it a huge amount of text lines!). But here is main error message:

ERROR: Builder failed: ld: warning: building for iOS, but linking in object file (…/.build/libtemplate/libtemplate.a(CoronaProvider.gameNetwork.o)) built for free standing

My plugin list:

plugins =

    {

[“plugin.google.iap.v3”] =

        {

            publisherId = “com.coronalabs”,

supportedPlatforms = { android=true }

        },

[“plugin.gpgs.v2”] = {

            publisherId = “com.coronalabs”,

            supportedPlatforms = {[“android”] = true, [“android-kindle”] = true}

        },

[“plugin.flurry.analytics”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, android=true }

        },

[“plugin.admob”] =

        {

            publisherId = “com.coronalabs”,

supportedPlatforms = { iphone=true, android=true }

        },

[“plugin.reviewPopUp”] =

{

publisherId = “tech.scotth”,

supportedPlatforms = { iphone=true}

},

[“plugin.firebaseAnalytics”] = {

publisherId = “tech.scotth”,

supportedPlatforms = { iphone=true, android=true }

},

[“plugin.wallpaper”] =

        {

            publisherId = “tech.scotth”,

supportedPlatforms = { android=true }

        },

[“plugin.utf8”] =

        {

            publisherId = “com.coronalabs”,

supportedPlatforms = { iphone=true, android=true }

        },

[“plugin.animation”] =

        {

            publisherId = “com.coronalabs”

        },

[“CoronaProvider.gameNetwork.apple”] =

        {

            publisherId = “com.coronalabs”,

supportedPlatforms = { iphone=true}

        },

[“plugin.iCloud”] =

        {

            publisherId = “com.coronalabs”,

supportedPlatforms = { iphone=true}

        },

That’s why we asked you to use pastebin.com to paste your log too and share the link here.

FWIW, I just downloaded 3575 and built the Facebook sample app for Android, untouched on Mac Catalina without any errors.

We ask for your build.settings, not a part of it, but the whole thing. The need for the whole log file lets us look for other messages that might be important.

Rob

There is no 3757 available?? Android?? Twice I wrote iPhone, and when I read other people’s posts, so are they, not Android!

Also… the last changes to your builds the last month and a half has been all about iOS and Macs, so it seems obvious to me, we all talk about iOS on Macs.

3573 macOS: Fixing notarization for built apps
3574 macOS: Fixing notarization for built apps
3575 iOS: fixing embedding of Swift libraries
3569 iOS: Fixing Swift 5 linking
3567 iOS: trying to fix missing symbols issue

All errors occur only when you are building an iOS build, Android building is totally fine. But ‘unable to linking the app’ and ‘there is no template’ messages happens only in an iOS building procedure. 

Sorry, 3575.

I’ve asked engineering to look into it.

Rob

Vlad was unable to reproduce it. I tried again, got an error (I should have copy/pasted it). I noticed there was some complaints about some provisioning profiles. The profile I was using was not in the list (some profiles I’ve not regenerated since my certificate expired) but I changed it none-the-less. It built without error. I tried both with 3575 and 3564.

This is why it’s important that you post your entire build log. My error was clearly not the same issue the OP shared. Everyone else who has this problem hasn’t shared their build log yet. Please help us help you! 

I even built a plugin-heavy game of mine with these plugins:
 

 plugins = { ["plugin.twitter"] = { publisherId = "com.jasonschroeder" }, ["plugin.bit"] = { publisherId = "com.coronalabs", }, ["plugin.collisionFilters"] = { publisherId = "com.coronalabs" }, ["plugin.facebook.v4a"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["plugin.gpgs.v2"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.gamecenter"] = { publisherId = "tech.scotth", supportedPlatforms = { appletvos=true, osx=true } }, ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone = true } }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true } }, ["plugin.amazon.iap"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android-kindle"]=true } }, ["CoronaProvider.native.popup.activity"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true } }, ["plugin.reviewPopUp"] = { publisherId = "tech.scotth", supportedPlatforms = { iphone=true } }, ["plugin.vibrator"] = {publisherId = "com.spiralcodestudio", supportedPlatforms = { iphone=true, android=true } }, ["plugin.gameanalytics\_v2"] = { publisherId = "com.gameanalytics", supportedPlatforms = { iphone=true, android=true } }, ["CoronaProvider.native.popup.social"] = { publisherId = "com.coronalabs" }, ["plugin.admob"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, }, 

It built without error. 

We want to get to bottom of this, but we can’t without your help in sharing the log and your build.settings (some of you have done this step). Please use pastebin.com or some similar service to paste your log in to and share the link here.

Rob 

I found the cause to the problem in my project when using any corona plugin… Moving from Corona 3550 to 3575, you can no longer set the minimum version in iOS/iPhone to 7.0

iphone = {

        plist = {

        MinimumOSVersion = “7.0”,

        },

    },

I do see on the current download page of Corona, it requires iOS 8, so my bad. It has just been in my code for so many years, that I didn’t think of it.

Hey guys. This should be fixed now. (original post)

I updated Google’s frameworks for some of the plugins and they became conflicted with other plugins (firebase *). I updated Scott’s plugins, so they are good now.

“Template Not Found” is a random issue. One of build servers got lost, it seems. Try again, it should go away… Told admins about that, should be fixed monday or so.

I can confirm that all works fine now. There is no any linking app errors in 3575. Great job! Thank you so much Vlad! You are the best!

FYI, go this error just now.

Vlads is correct, in that this is an intermittent issue. On the 5th try to create a build, it worked without any error.