Xcode 8 or macOS sierra build issue.

Hi!

Has anybody had any link error when building an iOS app after having switched over the macOS 10.12 (Sierra), Xcode 8 and iOS 10 SDK? My app, which worked fine before, now won’t link as Corona will return this …

Compiling Slices... Compiling architecture: armv7 Sep. 19 03:25:09.527 \<execute\>cd "/var/folders/d1/c4vn433x1fn4shcbtpllqr1h0000gn/T/CLtmph1evPt/armv7";unset LIBRARY\_PATH; export IPHONEOS\_DEPLOYMENT\_TARGET=6; 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.0.sdk -ObjC -all\_load -fobjc-link-runtime -miphoneos-version-min=6 -L"/Users/simonm/Downloads/TestApp.app/.build/libtemplate" -L"/Users/simonm/Downloads/TestApp.app/.build/CoronaProvider.gameNetwork.apple" -L"/Users/simonm/Downloads/TestApp.app/.build/plugin.coronaAds" -L"/Users/simonm/Downloads/TestApp.app/.build/plugin.facebook.v4" -L"/Users/simonm/Downloads/TestApp.app/.build/plugin.flurry.analytics" -L"/Users/simonm/Downloads/TestApp.app/.build/plugin.google.play.services" -L"/Users/simonm/Downloads/TestApp.app/.build/plugin.openssl" -L"/Users/simonm/Downloads/TestApp.app/.build/plugin.revmob" -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 CoreTelephony -framework WebKit -framework AdSupport -framework Accounts -framework EventKit -framework EventKitUI -weak\_framework GameController -weak\_framework AssetsLibrary -weak\_framework Photos -weak\_framework Foundation -weak\_framework Twitter -lobjc -lsqlite3 -ltemplate -lgameNetwork-apple -lplugin\_coronaAds -lz -lxml2 -llibc++ -llibstdc++ -lfacebook -lFlurryPlugin -lFlurry\_7.5.2 -lgoogle-play-services -lplugin.openssl -lrevmobPlugin -o "/var/folders/d1/c4vn433x1fn4shcbtpllqr1h0000gn/T/CLtmph1evPt/armv7/TestApp"\</execute\> \<result\>clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7 ld: library not found for -llibc++ clang: error: linker command failed with exit code 1 (use -v to see invocation)\</result\> Sep. 19 03:25:09.528 ERROR: Builder failed: clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7 Sep. 19 03:25:09.528 ld: library not found for -llibc++ clang: error: linker command failed with exit code 1 (use -v to see invocation) Sep. 19 03:25:09.533 BUILD ERROR: There was a problem linking the app. Check the console for more information. Sep. 19 03:25:09.561 iOS build failed (12) after 301 seconds Sep. 19 03:25:09.638 ERROR: Build Failed: There was a problem linking the app. Check the console for more information. Sep. 19 03:25:09.638 

There is definitely a “libc++.dylib” in the /usr/lib directory, so nothing has changed there.

I tried to revert to older versions of Xcode (7.3.1), iOS 9.3 and different versions of Corona (all the way from the most recent daily build to the last official release) and the problem persists …

Any thoughts?

Thanks in advance for any help!

Just to make sure,  you’re doing Simulator builds, not Enterprise builds?

You’ve tried build 2950 or later?

I am seeing this same issue. It just started today as I was building yesterday with no issues. I have downloaded 2016.2951 and still seeing the issue. I am using Simulator to build and when I build for iOS I see the following in the console:

Sep 19 01:02:12.320 ERROR: Builder failed: ld: library not found for -llibc++

Sep 19 01:02:12.320 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am running the following:

iOS SDK 9.3

xCode 7.3

Mac OSX El Capitan 10.11.6

Corona SDK 2016.2951

Android is building just fine.

I just did a build with 2951. I’m on Xcode 8 so I’m using iOS 10.0 SDK on El Capitan 10.11.6 and I didn’t get an error. What happens if you drop back to 2949?

Rob

I was using 2948 this morning when I got the error. I will give 2949 the ole college try.

2016.2949 gives the same error…

Is there anyway to disable the coronaAds.plugin on your side? The only real change I have made in the past 2 days is to add Corona Ads. I tried removing all references in my app to Corona Ads but when I build the plugin is still added.

Can I get a list of plugins you guys are using?  Post your build.settings please.

Facebook v4, toast, Corona Ads, notifications, sqlite3

Rob, looks like it is Corona Ads. I removed that plugin from my build.settings and the build now works.

Thanks for that. I’ll see what we can do to fix it.

Rob

Hi guys,

Yeah, looks like it was/is the Corona Ads plugin that’s causing the issue. Removing that from my build.settings has allowed the app to build just fine. (Switching to older / newer builds of the Corona Simulator didn’t help).

So, I can get a build working (which is good), but I’ll have to hold off on the Corona Ads dev for a bit …

Thanks for the help!

I’m having this issue too. Please fix or I’ll be forced to use a different ad platform :-(.

They are working on a solution.

Can everyone try again?

Working now, thanks Rob!

Yes, working for me as well.

Rob, while we are on Corona Ads, can you take a look at this post? Thanks!

Sovled for me also.

Thanks for all the help!

Can you guys please post what you did to resolve?

I am using Corona Enterprise v2016.2828,

Plugin coronaAds

same error “libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7”

Xcode: “Version 8.0 (8A218a)”

You need to get the latest Corona Enterprise and plugin archive file and get the latest Corona Ads plugin from it. You have to have daily build 2948 or later to deploy to Apple. 2949 has the release iOS SDK with it, so that’s our minimum recommended version.  But the Corona Ads issue was fixed a few builds after that, so in your case just getting the latest every think (Enterprise, Simulator, Plugin archive) will be your best bet.

Rob

Hi Rob,

I have had an interesting morning.  Have upgraded to latest of Corona - Am using CoronaEnterprisePlugins.2016.2954

(Enterprise and Plugins).  On OSX 10.11.6 (happy to upgrade if this truly fixed the issue)

 Xcode: “Version 8.0 (8A218a)”

Results:

I can build the sample project successfully

I can make a new project and add in other plugins (e.g. notifications) successfully

What would be helpful?

Please confirm the steps you used for Enterprise.

Please start with the “ProjectTemplates/App”

either:

  1. a quick video of starting with the Tempalte app, adding in your coronaAds plugin and the ,bundle and the code from the ads app 

or

  1. a list of the steps.

 

I am going crazy as I can’t figure the source of the error and it looks like a 64bit change… “Undefined symbols for architecture x86_64:”

Thanks

Peter