Xcode 5.1.1 build failed with old Unity project

Dear comunity,
i have a old project of my game, but when i get try to build Xcode give me some error about architecture. Now i try some solution around websites but i cannot build and run my application on my iphone 5 (i don’t try in the old iphone/ipad).

Undefined symbols for architecture armv7:
  "UnityGetGLView()", referenced from:
      iphone::OnProcessTouchEvents(NSSet*, NSSet*) in libiPhone-lib.a(iPhoneInputImpl.o)
  "UnityGetGLViewController()", referenced from:
      -[MoviePlayerContext actuallyStartTheMovie:] in libiPhone-lib.a(iPhoneVideo.o)
      -[MoviePlayerContext finish] in libiPhone-lib.a(iPhoneVideo.o)
      -[AchievementWrapper showAchievementsUI] in libiPhone-lib.a(GameCenter.o)
      -[AchievementWrapper achievementViewControllerDidFinish:] in libiPhone-lib.a(GameCenter.o)
      -[LeaderboardWrapper showLeaderboardUI:withTimeScope:] in libiPhone-lib.a(GameCenter.o)
      -[LeaderboardWrapper leaderboardViewControllerDidFinish:] in libiPhone-lib.a(GameCenter.o)
  "_UnityInitApplicationNoGraphics", referenced from:
      -[UnityAppController application:didFinishLaunchingWithOptions:] in UnityAppController.o
  "_UnityInitApplicationGraphics", referenced from:
      -[UnityAppController startUnity:] in UnityAppController.o
  "_UnityGetSystemResolution", referenced from:
      -[UnityView recreateGLESSurfaceIfNeeded] in UnityView.o
  "_UnityReportResizeView", referenced from:
      -[UnityView onUpdateSurfaceSize:] in UnityView.o
  "_UnitySetDefaultFBO", referenced from:
      PreparePresentRenderingSurface(UnityRenderingSurface*, EAGLContext*) in GlesHelper.o
      SetupUnityDefaultFBO(UnityRenderingSurface*) in GlesHelper.o
  "_UnityRegisterFBO", referenced from:
      CreateUnityRenderBuffers(UnityRenderingSurface*) in GlesHelper.o
  "_UnityReportWWWFinishedLoadingData", referenced from:
      -[UnityWWWConnectionDelegate connectionDidFinishLoading:] in WWWConnection.o
  "__gameCenterShowLeaderboardWithTimeScopeAndLeaderboardId", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterShowLeaderboardWithTimeScope", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterShowCompletionBannerForAchievements", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterShowAchievements", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveScoresForPlayerIdAndLeaderboard", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveScoresForLeaderboard", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterResetAchievements", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "_UnityReportBackbufferChange", referenced from:
      -[UnityView recreateGLESSurface] in UnityView.o
  "__gameCenterGetAchievements", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveScoresForPlayerId", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterReportScore", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterPlayerIdentifier", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterLoadProfilePhotoForLocalPlayer", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterLoadPlayerData", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveFriends", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterIssueScoreChallenge", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveScores", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterLoadLeaderboardLeaderboardTitles", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "_UnityReportWWWFailedWithError", referenced from:
      -[UnityWWWConnectionDelegate connection:didFailWithError:] in WWWConnection.o
  "_UnityReportWWWReceivedResponse", referenced from:
      -[UnityWWWConnectionDelegate connection:didReceiveResponse:] in WWWConnection.o
  "__gameCenterIsUnderage", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterIssueAchievementChallenge", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterIsPlayerAuthenticated", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterSelectChallengeablePlayerIDsForAchievement", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "_UnityReportWWWReceivedData", referenced from:
      -[UnityWWWConnectionDelegate connection:didReceiveData:] in WWWConnection.o
  "__gameCenterIsGameCenterAvailable", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterReportAchievement", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterPlayerAlias", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "_UnityReportWWWSentData", referenced from:
      -[UnityWWWConnectionDelegate connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:] in WWWConnection.o
  "_UnityReportWWWStatusError", referenced from:
      -[UnityWWWConnectionDelegate connection:didReceiveResponse:] in WWWConnection.o
  "__gameCenterAuthenticateLocalPlayer", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveAchievementMetadata", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thank you so much :slight_smile:

1702767--106909--Schermata 2014-07-17 alle 15.20.00.png

Make sure you have set Device SDK (not Simulator SDK) in Player Settings.
P.S. Which Unity version are you using now, have you upgraded recently? If upgraded recently, you should replace your Xcode project from scratch instead of appending it.

I’m using Unity 4.3.1 and Xcode 5.1.1. Now i build with the correct setting (Device SDK and upgrade the target version to iOS 6.0 (before 4.3)). Now i get this error in Xcode:

Undefined symbols for architecture armv7:
  "__gameCenterShowLeaderboardWithTimeScopeAndLeaderboardId", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterShowLeaderboardWithTimeScope", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterShowCompletionBannerForAchievements", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterShowAchievements", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveScoresForPlayerIdAndLeaderboard", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveScoresForLeaderboard", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterResetAchievements", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterGetAchievements", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveScoresForPlayerId", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterReportScore", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterPlayerIdentifier", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterLoadProfilePhotoForLocalPlayer", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterLoadPlayerData", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveFriends", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterIssueScoreChallenge", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveScores", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterLoadLeaderboardLeaderboardTitles", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterIsUnderage", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterIssueAchievementChallenge", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterIsPlayerAuthenticated", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterSelectChallengeablePlayerIDsForAchievement", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterIsGameCenterAvailable", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterReportAchievement", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterPlayerAlias", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterAuthenticateLocalPlayer", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
  "__gameCenterRetrieveAchievementMetadata", referenced from:
      RegisterMonoModules() in RegisterMonoModules.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Now i thing the real problem are the plugin Prime31 for GameCenter…

Resoved! i update the old plugin from Prime31 (GameCenter Plugin) and XCode build without any errors :smile:
Thank you Manta for your support!

Hello,

I have the same last errors, using unity 4.6.0f3 and the lastest Prime31 plugin (bought and download 2 days ago).
I use xcode 6.1.1 any other idea ?