Unable to Build to iOS - framework not found AdSupport

Hello,

We haven’t build for iOS in a while. Now, that we need to, we are unable to do so.

I have attached a photo of the error we are getting. Let me describe what we have tried first:

  1. This is happening on all of our Corona projects.

  2. This is happening with all the provisioning profiles.

  3. We tried building using Corona SDK Version 2017.3068 (2017.3.31) and Corona Version 2017.3100 (2017.6.22).

  4. This did  NOT  happened when we ran it on xcodes’ simulator. (We were able to view the apps just fine on the simulator).

  5. Our xcode is up to date.

Error:

Screen+Shot+2017-06-25+at+5.09.25+PM.png

Thank you,

Mars

UPDATE: Issue NOT resolved yet. Accidentally left old google play plugin.

I thought that the issue have been solved. But it looks like something else is going on.

We have quite a few Corona projects, and yesterday I had the issue above with one of our projects. I noticed that removing this plugin fixed the issue:

[“plugin.google.play.services”] =

        {

            publisherId = "com.coronalabs"

        },

However… Now I’m working on a different project, and the issue is back (exactly the same). But this time the plugin that is giving us the issue is:

[“plugin.notifications.v2”] =

        {

            publisherId = "com.coronalabs"

        },

–and still

[“plugin.google.play.services”] =

        {

            publisherId = "com.coronalabs"

        },

I can’t even remember why we need the google play services one, but I do know that we have to have the notification for a local push message.

I have build these projects in the past with these settings and with Corona 2017.3068 (2017.3.31). I can only think of something changing in xcode.

Please help, thank you,

Mars

@Mars Interactive

That’s a rather peculiar error message, and one that doesn’t ring a bell as to why it’s happening for your builds.

Can you post your build.settings?

It might also help to know which version of macOS / Xcode you are using.

macOS Sierra Version 10.12.5

Xcode Version 8.3.3 (8E3004b) 

settings = { splashScreen = { enable = false }, orientation = { default = "portrait", supported = { "portrait", "portraitUpsideDown", }, }, android = { permissions = { { name = ".permission.C2D\_MESSAGE", protectionLevel = "signature" }, }, usesExpansionFile = false, usesPermissions = { "android.permission.INTERNET", "android.permission.VIBRATE", "android.permission.GET\_ACCOUNTS", "android.permission.CAMERA", "android.permission.RECEIVE\_BOOT\_COMPLETED", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "com.google.android.c2dm.permission.RECEIVE", --"com.android.vending.BILLING", ".permission.C2D\_MESSAGE", --"com.android.vending.CHECK\_LICENSE", }, }, iphone = { plist = { ------------------------------------------------- -- PUSH through OneSignal and Local PUSH UIBackgroundModes = {"remote-notification"}, -------------------------------------------------- FirebaseAppDelegateProxyEnabled = false, NSAppTransportSecurity = { NSAllowsArbitraryLoads = true }, UIAppFonts = { "Poland\_font.otf" }, CFBundleIconFile = "Icon.png", CFBundleDisplayName = "New App", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-Small-40.png", "Icon-Small-40@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-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png" }, UIApplicationExitsOnSuspend = false, FacebookAppID = "0000000000000000", CFBundleURLTypes = { { CFBundleURLSchemes = { "fb0000000000000000", } } } } }, plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.analytics.flurry"] = { -- required publisherId = "com.coronalabs", }, --key is the name passed to Lua's 'require()' ["CoronaProvider.native.popup.social"] = { --required publisherId = "com.coronalabs", }, --[[["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, --]] --[[--NEEDED FOR LOCAL PUSH ["plugin.notifications.v2"] = { publisherId = "com.coronalabs" }, --]] ------ OneSignal -------------------------------------------------------- ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, --[[Omit if you're using 'plugin.googleAnalytics' ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true }, }, --------------------------------------------------------------------------- --]] ["CoronaProvider.native.popup.activity"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, }, }

Unfortunately I cannot reproduce your issue.

If I include all of your plugins above (and even uncomment the ones you have commented) into a sample project I still don’t get a linking error.

My Test setup:

Corona build 2017.3100

Xcode 8.3.3 (8E3004b)

macOS Sierra 10.12.5 (16F73)

As for the necessity of [“plugin.google.play.services”] you can safely remove that plugin altogether from your build.settings (as long as you use Corona build 3005 or later). This plugin was necessary in the past, however the new Android Dependency System introduced in December last year will take care of including these dependencies.

Ok, That is strange. we’ve build the Local Notification DEMO (which uses the first version of notification plugin), and it worked fine.

If we’re able to build my project and use the old notification plugin, should we run into any trouble?

Using the old notifications plugin for local notifications is perfectly fine.

Hello again,

I don’t know what’s wrongly setup in our app. So, we ended up using the old notification plugin for the local push notification to avoid this issue.

Now, we are trying to implement the Kidoz plugin from the Corona Marketplace and the issue returns:

Jul 27 12:59:21.809 BuildID: 5979b9712e98b Jul 27 12:59:40.169 Using additional build settings from: build.settings Jul 27 12:59:40.213 Building: Copying app resources Jul 27 12:59:46.174 Building: Unpacking build from server Jul 27 12:59:46.877 Building: Adding plugins Jul 27 12:59:46.931 Analyzing plugins... Jul 27 12:59:46.931 Found native plugin: /Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/CoronaProvider.analytics.flurry Jul 27 12:59:46.932 Found native plugin: /Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/CoronaProvider.native.popup.activity Found native plugin: /Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/CoronaProvider.native.popup.social Found native plugin: /Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/facebook Found native plugin: /Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/plugin.kidoz Found native plugin: /Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/plugin.notifications  Done.  Analyzing Lua plugins... Jul 27 12:59:46.932 Examining plugin: CoronaProvider.analytics.flurry Examining plugin: CoronaProvider.native.popup.activity Examining plugin: CoronaProvider.native.popup.social Examining plugin: facebook Examining plugin: plugin.kidoz Examining plugin: plugin.notifications  Done.  Compiling Slices...  Compiling architecture: armv7 Jul 27 12:59:46.992 \<execute\>cd "/var/folders/5s/fc2r58d13cg6sd0wxr\_h8l300000gp/T/CLtmpJODt1S/armv7";unset LIBRARY\_PATH; export IPHONEOS\_DEPLOYMENT\_TARGET=8; export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin";"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -stdlib=libstdc++ -arch armv7 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk" -ObjC -all\_load -fobjc-link-runtime -miphoneos-version-min=8 -std=c++11 -stdlib=libc++ -Xlinker -rpath -Xlinker @executable\_path/Frameworks -L"/Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/libtemplate" -L"/Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/CoronaProvider.analytics.flurry" -L"/Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/CoronaProvider.native.popup.activity" -L"/Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/CoronaProvider.native.popup.social" -L"/Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/facebook" -L"/Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/plugin.kidoz" -L"/Users/kidstv/Desktop/ספוג מאסטר זהב.app/.build/plugin.notifications" -F"/Users/kidstv/Desktop/ספוג מאסטר זהב.app/Frameworks" -framework AudioToolbox -framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -framework CoreMotion -framework CoreVideo -framework CoreText -framework GameKit -framework GLKit -framework ImageIO -framework MapKit -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenAL -framework OpenGLES -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -framework Accounts -framework AdSupport -framework WebKit -weak\_framework GameController -weak\_framework AssetsLibrary -weak\_framework Photos -weak\_framework Foundation -weak\_framework Twitter -weak\_framework social -lobjc -lsqlite3 -ltemplate -lanalytics-flurry -lnative-popup-activity -lnative-popup-social -lfacebook -lKidozPlugin -lKidozSDK -lnotifications -o "/var/folders/5s/fc2r58d13cg6sd0wxr\_h8l300000gp/T/CLtmpJODt1S/armv7/ספוג מאסטר זהב"\</execute\>  \<result\>ld: warning: directory not found for option '-F/Users/kidstv/Desktop/ספוג מאסטר זהב.app/Frameworks' ld: framework not found AdSupport clang: error: linker command failed with exit code 1 (use -v to see invocation)\</result\> Jul 27 12:59:46.992 ERROR: Builder failed: ld: warning: directory not found for option '-F/Users/kidstv/Desktop/ספוג מאסטר זהב.app/Frameworks' Jul 27 12:59:46.993 ld: framework not found AdSupport clang: error: linker command failed with exit code 1 (use -v to see invocation) BUILD ERROR: There was a problem linking the app.  Check the console for more information. iOS build failed (12) after 36 seconds Jul 27 12:59:47.189 ERROR: Build Failed: There was a problem linking the app.  Check the console for more information.

Removing it, and the app builds just fine…

Don’t know where to start debuging this issue…

@Mars Interactive

I’ve tried including all the plugins you are using in a sample project and I can build the app without any issues.

There’s one strange thing I found in your log above, and that is: " Examining plugin: facebook". Which plugin is that? The current Facebook plugin is plugin.facebook.v4.

We don’t need it, it was there when the app was copied from an older version. I’ve removed it, and tested, but didn’t fix the issue.

In fact, I have removed ALL plugins but the Kidos, and the issue remains…

This is an iOS only issue, as I mentioned. What about the error? Can we use that to understand how to debug it?

@Mars Interactive.

It looks like you have a corrupt Xcode installation. If you go here on your system:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks 

You’ll probably see that the AdSupport.framework is missing, which would mean you’d need to re-install Xcode 

UPDATE: Issue NOT resolved yet. Accidentally left old google play plugin.

I thought that the issue have been solved. But it looks like something else is going on.

We have quite a few Corona projects, and yesterday I had the issue above with one of our projects. I noticed that removing this plugin fixed the issue:

[“plugin.google.play.services”] =

        {

            publisherId = "com.coronalabs"

        },

However… Now I’m working on a different project, and the issue is back (exactly the same). But this time the plugin that is giving us the issue is:

[“plugin.notifications.v2”] =

        {

            publisherId = "com.coronalabs"

        },

–and still

[“plugin.google.play.services”] =

        {

            publisherId = "com.coronalabs"

        },

I can’t even remember why we need the google play services one, but I do know that we have to have the notification for a local push message.

I have build these projects in the past with these settings and with Corona 2017.3068 (2017.3.31). I can only think of something changing in xcode.

Please help, thank you,

Mars

@Mars Interactive

That’s a rather peculiar error message, and one that doesn’t ring a bell as to why it’s happening for your builds.

Can you post your build.settings?

It might also help to know which version of macOS / Xcode you are using.

macOS Sierra Version 10.12.5

Xcode Version 8.3.3 (8E3004b) 

settings = { splashScreen = { enable = false }, orientation = { default = "portrait", supported = { "portrait", "portraitUpsideDown", }, }, android = { permissions = { { name = ".permission.C2D\_MESSAGE", protectionLevel = "signature" }, }, usesExpansionFile = false, usesPermissions = { "android.permission.INTERNET", "android.permission.VIBRATE", "android.permission.GET\_ACCOUNTS", "android.permission.CAMERA", "android.permission.RECEIVE\_BOOT\_COMPLETED", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "com.google.android.c2dm.permission.RECEIVE", --"com.android.vending.BILLING", ".permission.C2D\_MESSAGE", --"com.android.vending.CHECK\_LICENSE", }, }, iphone = { plist = { ------------------------------------------------- -- PUSH through OneSignal and Local PUSH UIBackgroundModes = {"remote-notification"}, -------------------------------------------------- FirebaseAppDelegateProxyEnabled = false, NSAppTransportSecurity = { NSAllowsArbitraryLoads = true }, UIAppFonts = { "Poland\_font.otf" }, CFBundleIconFile = "Icon.png", CFBundleDisplayName = "New App", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-Small-40.png", "Icon-Small-40@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-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png" }, UIApplicationExitsOnSuspend = false, FacebookAppID = "0000000000000000", CFBundleURLTypes = { { CFBundleURLSchemes = { "fb0000000000000000", } } } } }, plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.analytics.flurry"] = { -- required publisherId = "com.coronalabs", }, --key is the name passed to Lua's 'require()' ["CoronaProvider.native.popup.social"] = { --required publisherId = "com.coronalabs", }, --[[["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, --]] --[[--NEEDED FOR LOCAL PUSH ["plugin.notifications.v2"] = { publisherId = "com.coronalabs" }, --]] ------ OneSignal -------------------------------------------------------- ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, --[[Omit if you're using 'plugin.googleAnalytics' ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true }, }, --------------------------------------------------------------------------- --]] ["CoronaProvider.native.popup.activity"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, }, }

Unfortunately I cannot reproduce your issue.

If I include all of your plugins above (and even uncomment the ones you have commented) into a sample project I still don’t get a linking error.

My Test setup:

Corona build 2017.3100

Xcode 8.3.3 (8E3004b)

macOS Sierra 10.12.5 (16F73)

As for the necessity of [“plugin.google.play.services”] you can safely remove that plugin altogether from your build.settings (as long as you use Corona build 3005 or later). This plugin was necessary in the past, however the new Android Dependency System introduced in December last year will take care of including these dependencies.

Ok, That is strange. we’ve build the Local Notification DEMO (which uses the first version of notification plugin), and it worked fine.

If we’re able to build my project and use the old notification plugin, should we run into any trouble?