Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

iOS build error with version 2019.3535 for MacOS Catalina
Started by bamazy Oct 10 2019 11:34 PM

9 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Enthusiast

  • 87 posts
  • Corona SDK

Hi, all!

 

I have updated to MacOS Catalina a few days ago and now I can not build for iOS. When upgraded to the version 2019.3538 I could not build for neither Android nor iOS. Then I deleted the version 2019.3538 and installed the version 2019.3535. This time I was able to build for Android but for iOS it does not work. I have tried to paste the log to pastebin and one other site but they kept telling me that the logs are too long, so I can not add a link to the logs. However, below are the latest lines of the log: 

    /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.firebaseAnalytics/libGoogleAppMeasurement.a(decoder_common_7bb8121abaf02375f0da94d655962213.o)
                    duplicate symbol '_nano_encode_bytes' in:
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.appodeal.GoogleAdMob/GoogleAppMeasurement.framework/GoogleAppMeasurement(encoder_common_101f61bd209c1aca3aef10f6a9a8beb0.o)
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.firebaseAnalytics/libGoogleAppMeasurement.a(encoder_common_dd9a395457c1f1eaff51b2fdc2c4e3a2.o)
                    duplicate symbol '_nano_encode_repeated_bytes' in:
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.appodeal.GoogleAdMob/GoogleAppMeasurement.framework/GoogleAppMeasurement(encoder_common_101f61bd209c1aca3aef10f6a9a8beb0.o)
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.firebaseAnalytics/libGoogleAppMeasurement.a(encoder_common_dd9a395457c1f1eaff51b2fdc2c4e3a2.o)
                    duplicate symbol '_nano_encode_string' in:
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.appodeal.GoogleAdMob/GoogleAppMeasurement.framework/GoogleAppMeasurement(encoder_common_101f61bd209c1aca3aef10f6a9a8beb0.o)
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.firebaseAnalytics/libGoogleAppMeasurement.a(encoder_common_dd9a395457c1f1eaff51b2fdc2c4e3a2.o)
                    duplicate symbol '_nano_encode_repeated_string' in:
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.appodeal.GoogleAdMob/GoogleAppMeasurement.framework/GoogleAppMeasurement(encoder_common_101f61bd209c1aca3aef10f6a9a8beb0.o)
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.firebaseAnalytics/libGoogleAppMeasurement.a(encoder_common_dd9a395457c1f1eaff51b2fdc2c4e3a2.o)
                    duplicate symbol '_nano_two_pass_encoding' in:
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.appodeal.GoogleAdMob/GoogleAppMeasurement.framework/GoogleAppMeasurement(encoder_common_101f61bd209c1aca3aef10f6a9a8beb0.o)
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.firebaseAnalytics/libGoogleAppMeasurement.a(encoder_common_dd9a395457c1f1eaff51b2fdc2c4e3a2.o)
                    duplicate symbol '_nano_encode_repeated_uint64' in:
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.appodeal.GoogleAdMob/GoogleAppMeasurement.framework/GoogleAppMeasurement(encoder_common_101f61bd209c1aca3aef10f6a9a8beb0.o)
                        /Users/ielmar/Desktop/YolNisanlariCL.app/.build/plugin.firebaseAnalytics/libGoogleAppMeasurement.a(encoder_common_dd9a395457c1f1eaff51b2fdc2c4e3a2.o)
                    ld: 909 duplicate symbols for architecture armv7
                    clang: error: linker command failed with exit code 1 (use -v to see invocation)
Oct 11 03:19:01.020 BUILD ERROR: There was a problem linking the app.
                    
                    Check the console for more information.
Oct 11 03:19:01.020 iOS build failed (12) after 544 seconds
Oct 11 03:19:01.182 ERROR: Build Failed: There was a problem linking the app.
                    
                    Check the console for more information.
Oct 11 03:19:01.182 

By the way, I have tried both with GADApplicationIdentifier added and without it. 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,207 posts
  • Enterprise

Can you share your build.settings?

Can you please try the latest daily build?

 

Rob



[TOPIC: post.html]
#3

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Enthusiast

  • 87 posts
  • Corona SDK

Rob, after reading your post about your successful build on MacOS Catalina, I installed 2019.3538 again and was able to build for Android but not for iOS. I have just installed the latest one and have tried to build for iOS but I got the same error. I also assume that Xcode 11.0 might be the reason. However I was not able to install Xcode 11.1 although I have tried to install 5-6 times today. Now it's being downloaded again. If I can succeed to install it, I'll try to build and inform you about the result. 

 

Below is my build.settings:

--
-- For more information on build.settings, see the Project Build Settings guide at:
-- https://docs.coronalabs.com/guide/distribution/buildSettings
--

settings =
{
	orientation =
	{
		-- Supported values for orientation:
		-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight
		default = "portrait",
		supported = { "portrait", },
	},

	--
	-- Android section
	--
	android =
	{
		usesPermissions =
		{
			"android.permission.INTERNET",
			"android.permission.GET_ACCOUNTS",
			"android.permission.ACCESS_COARSE_LOCATION",
			"android.permission.ACCESS_FINE_LOCATION",
			"android.permission.RECEIVE_BOOT_COMPLETED",
			"android.permission.VIBRATE",
			"android.permission.WRITE_EXTERNAL_STORAGE"
		},
        applicationChildElements =
        {
            [[
                <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
                    android:value="ca-app-pub-4700703729931997~6335344891"/>
            ]],
        },
		useGoogleServicesJson = true,
	},

	--
	-- iOS section
	--
	iphone =
	{
		xcassets = "Images.xcassets",
		plist =
		{
			GADApplicationIdentifier = "ca-app-pub-4700703729931997~9691574843",
			UIStatusBarHidden = false,
			UILaunchStoryboardName = "LaunchScreen",
			NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },
            UIBackgroundModes = { "remote-notification" },
			FirebaseAppDelegateProxyEnabled = false,
            CFBundleDisplayName = "Yol nişanları",
            CFBundleName = "com.elitsolutions.yolnisanlari",
			NSLocationAlwaysUsageDescription = "Ads code requires location data to show more related ad",
			NSBluetoothAlwaysUsageDescription = "This app would like to access bluetooth.",
		},
	},

	--
	-- Plugins section
	--
	plugins =
	{
        ["plugin.utf8"] =
        {
            publisherId = "com.coronalabs"
        },
		["plugin.firebaseAnalytics"] = {
			publisherId = "tech.scotth",
		},
        ["plugin.notifications.v2"] =
        {
            publisherId = "com.coronalabs"
        },
        ["CoronaProvider.native.popup.social"] =
        {
            publisherId = "com.coronalabs"
        },
        ["CoronaProvider.native.popup.activity"] =
        {
            publisherId = "com.coronalabs",
			supportedPlatforms = { iphone=true }
        },
        ["plugin.nanosvg"] =
        {
        	publisherId = "com.coronalabs"
        },
		['plugin.appodeal.base'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.AdColony'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.AmazonAds'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.Appnext'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.Chartboost'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.FacebookAudience'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.Flurry'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.GoogleAdMob'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.InMobi'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.IronSource'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.Mobvista'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.MyTarget'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.Ogury'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.Tapjoy'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.TwitterMoPub'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.Unity'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.Vungle'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.Yandex'] = { publisherId = 'com.coronalabs' },
	},

	--
	-- Project section
	--
	excludeFiles =
	{
		-- Exclude unnecessary files for each platform
		all = { "Icon.png", "Icon-*dpi.png", "Images.xcassets", },
		android = { "LaunchScreen.storyboardc", },
	},
}

By the way, thinking that the new GADApplicationIdentifier line for iOS might be the cause, I have also tried to build commenting the line out without any success. 



[TOPIC: post.html]
#4

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Enthusiast

  • 87 posts
  • Corona SDK

Rob, I have installed Xcode 11.1 but it still gives the same error.  :(



[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,207 posts
  • Enterprise

It looks like a lot of the duplicate symbols are in the Firebase Analytics plugin. Can you try and comment that out and see if you still have the issue?

 

Rob



[TOPIC: post.html]
#6

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Enthusiast

  • 87 posts
  • Corona SDK

Rob, I tried what you said but it did not work. But this time I was able to upload the logs to pastebin.

 

https://pastebin.com/FRHMeuGN



[TOPIC: post.html]
#7

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Enthusiast

  • 87 posts
  • Corona SDK

Rob, commenting out GoogleAdMob from Appodeal inside build.settings worked and I was able to build. 



[TOPIC: post.html]
#8

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 889 posts
  • Corona Staff

Hey. 

I don't think it's possible to use Firebase Analytics with the Appodeal AdMob. They both use same shared libraries of different versions



[TOPIC: post.html]
#9

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Enthusiast

  • 87 posts
  • Corona SDK

Vlads, I have been using Appodeal Admob with Firebase Analytics for some time. Maybe Appodeal changed it on the latest SDK. So it means I have to choose either Firebase Analytics or Appodeal Admob?



[TOPIC: post.html]
#10

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 889 posts
  • Corona Staff

It seems like this is the case currently, unfortunately. Sorry




[topic_controls]
[/topic_controls]