Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errors when building with Xcode 7, Unity 5.2.3f1, iOS 9.1 base SDK

Tags:

xcode

unity3d

I'm trying to build a sample Unity app with Xcode 7, Unity 5.2.3f1, iOS 9.1 base SDK, but get these compile errors when trying to run the app in Xcode. I already set scripting backend = IL2CPP, Architecture = Universal, but it did not help.

Undefined symbols for architecture x86_64: "_CloseZStream", referenced from: _DeflateStream_Dispose_m2_129 in Bulk_System_0.o _DeflateStream_CloseZStream_m2_153 in Bulk_System_0.o (maybe you meant: _DeflateStream_CloseZStream_m2_153) "_CreateZStream", referenced from: _DeflateStream_CreateZStream_m2_152 in Bulk_System_0.o (maybe you meant: _DeflateStream_CreateZStream_m2_152) "_Flush", referenced from: _DeflateStream_Flush_m2_139 in Bulk_System_0.o _DeflateStream_Flush_m2_154 in Bulk_System_0.o (maybe you meant: _FtpDataStream_Flush_m2_546, _UnmanagedMemoryStream_Flush_m1_2462 , _NullStream_Flush_m1_2305 , _MemoryStream_Flush_m1_2229 , _FileStream_Flush_m1_2186 , _FileStream_FlushBuffer_m1_2191 , _FileStream_FlushBufferIfDirty_m1_2193 , _FileStream_FlushBuffer_m1_2192 , _XmlInputStream_Flush_m7_567 , _WebConnectionStream_Flush_m2_928 , _SynchronizedWriter_Flush_m1_2427 , _NetworkStream_Flush_m2_227 , _GZipStream_Flush_m2_162 , _DeflateStream_Flush_m2_139 , _StreamWriter_FlushBytes_m1_2354 , _DeflateStream_Flush_m2_154 , _TlsStream_Flush_m3_798 , _SslStream_Flush_m2_202 , _TextWriter_Flush_m1_2415 , _StreamWriter_Flush_m1_2353 , _SslStreamBase_Flush_m3_726 , _UnexceptionalStreamWriter_Flush_m1_2447 ) "_ReadZStream", referenced from: _DeflateStream_ReadInternal_m2_134 in Bulk_System_0.o _DeflateStream_ReadZStream_m2_155 in Bulk_System_0.o (maybe you meant: _DeflateStream_ReadZStream_m2_155) "_UnityADBannerViewFailedToLoad", referenced from: -[UnityADBanner bannerView:didFailToReceiveAdWithError:] in iAD.o "_UnityADBannerViewWasClicked", referenced from: -[UnityADBanner bannerViewActionDidFinish:] in iAD.o "_UnityADBannerViewWasLoaded", referenced from: -[UnityADBanner bannerViewDidLoadAd:] in iAD.o "_UnityADInterstitialADWasLoaded", referenced from: -[UnityInterstitialAd interstitialAdDidLoad:] in iAD.o "_UnityBindFramebuffer", referenced from: _CreateSystemRenderingSurfaceGLES in GlesHelper.o _DestroySystemRenderingSurfaceGLES in GlesHelper.o _CreateRenderingSurfaceGLES in GlesHelper.o _DestroyRenderingSurfaceGLES in GlesHelper.o _CreateSharedDepthbufferGLES in GlesHelper.o _CreateField in Minesweeper _PreparePresentGLES in GlesHelper.o "_UnityBlitToBackbuffer", referenced from: _PreparePresentGLES in GlesHelper.o "_UnityCaptureScreenshot", referenced from: _PreparePresentGLES in GlesHelper.o

like image 592
user1615898 Avatar asked Nov 23 '15 07:11

user1615898


2 Answers

I solved this issue by checking "Symlink Unity Library" in Build Settings and made sure the build is for device, not simulator.

like image 69
Leo Avatar answered Sep 19 '22 13:09

Leo


I had this error because my iOS device changed from an iphone 5 to a generic iOs device I assume because the cord wasn't high quality and it lost connection.

If XCode loses connection it tries to build for a generic device.

I just reconnected the phone and rebuilt fixed my issue.

like image 33
gollumullog Avatar answered Sep 21 '22 13:09

gollumullog