Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libiphone-lib.a issue #36

Open
shubham321mishra opened this issue May 9, 2017 · 7 comments
Open

libiphone-lib.a issue #36

shubham321mishra opened this issue May 9, 2017 · 7 comments

Comments

@shubham321mishra
Copy link

shubham321mishra commented May 9, 2017

I am getting 4 errors due to libiphone-lib.a framework. Go through the logs :

Undefined symbols for architecture arm64:
[ "_MTAudioProcessingTapGetSourceAudio", referenced from:
AVFoundationVideoPlayback::PlayerPriv::ProcessAudioTap(opaqueMTAudioProcessingTap const, long, unsigned int, AudioBufferList, long, unsigned int) in libiPhone-lib.a(AVFoundationVideoPlayback.o)
"_MTAudioProcessingTapCreate", referenced from:
-[AVFoundationMediaLoader ConfigureAudioOutput] in libiPhone-lib.a(AVFoundationVideoPlayback.o)
"_MTAudioProcessingTapGetStorage", referenced from:
-[AVFoundationMediaLoader ConfigureAudioOutput] in libiPhone-lib.a(AVFoundationVideoPlayback.o)
AVFoundationVideoPlayback::PlayerPriv::PrepareAudioTap(opaqueMTAudioProcessingTap const, long, AudioStreamBasicDescription const) in libiPhone-lib.a(AVFoundationVideoPlayback.o)
AVFoundationVideoPlayback::PlayerPriv::ProcessAudioTap(opaqueMTAudioProcessingTap const, long, unsigned int, AudioBufferList, long, unsigned int) in libiPhone-lib.a(AVFoundationVideoPlayback.o)
AVFoundationVideoPlayback::PlayerPriv::FinalizeAudioTap(opaqueMTAudioProcessingTap const*) in libiPhone-lib.a(AVFoundationVideoPlayback.o)
-[AVFoundationMediaLoader StopOutput] in libiPhone-lib.a(AVFoundationVideoPlayback.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)]

Any help would be highly appreciated !

@radeknovis
Copy link

radeknovis commented May 15, 2017

I'm facing same problem. Using xcode 8.3.2 and swift 3 and Unity3D 5.6.0f3

probably related to this http://stackoverflow.com/questions/39466503/get-undefined-symbols-for-architecture-armv7-error-when-integrate-unity3d-with

@Frobei
Copy link

Frobei commented May 24, 2017

Hi,

Are you sure you included all the frameworks ? I got stuck with the same problem for one week and I realized I missed 1 framework when I opened the Xcode project Unity gives and compared its libraries and mine.
Here are the frameworks I'm using :
AssetsLibrary
AudioToolbox
AVFoundation
CFNetwork
CoreGraphics
CoreLocation
CoreMedia
CoreMotion
CoreVideo
Foundation
iAd
libiconv.2.tdb
MediaPlayer
MediaToolBox (this was the missing one)
OpenAL
OpenGLES
QuartzCore
Security
SystemConfiguration
UIKit
libiPhone-lib.a
libVuforia.a*
libVuforiaUnityPlayer.a*

*only if you use Vuforia in your scene

@radeknovis
Copy link

Hi, I'm not using Vuforia. I've found what was the problem. I had to rollback to older version (5.3.8f1) of unity editor. If the unity app is build with newer version it throws same or similar errors. I'm hoping Unity will fix this because It's quite incovenient.

@Frobei
Copy link

Frobei commented May 24, 2017

That's strange, I'm using Unity 5.6.0f3 and I was able to solve the problem as I described before.

If I were to make a guess, I'd say with newer version of Unity you need to make sure you use all the frameworks I mentioned (especially not forget the MediaToolbox.framework) in Build Phases -> Link Binaries with Libraries. Using Vuforia or not doesn't matter because the problem doesn't come from it.

@radeknovis
Copy link

Ok, I can give it try next time I will deal with this. Thanks for help !

@FatihEbibelot
Copy link

I'm having same problem here

Apple Mach-O Linker Error Group

: "_UnityGetGLView", referenced from:
: "OBJC_CLASS$_UnityAppController", referenced from:
: "_unity_init", referenced from:
: Linker command failed with exit code 1 (use -v to see invocation)

undefined symbols for architecture x86_64:
"_UnityGetGLView", referenced from:
__T08Ebibelot14ViewControllerC10startUnityyypF in ViewController.o
"OBJC_CLASS$_UnityAppController", referenced from:
objc-class-ref in AppDelegate.o
"_unity_init", referenced from:
__T08xxx11AppDelegateC11applicationSbSo13UIApplicationC_s10DictionaryVySC0E16LaunchOptionsKeyVypGSg022didFinishLaunchingWithH0tF in AppDelegate.o
ld: symbol(s) not found for architecture x86_64

@Oyashirox
Copy link

Oyashirox commented Oct 27, 2017

I solved it by adding in Unity.xcconfig:

OTHER_LDFLAGS = [...] -framework MediaToolbox [...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants