Apple Mach-O Linker Error when using AVPlayers seekToTime:kCMTimeZero - ios

I get this error when trying to restart a movie clip.
Apple Mach-O Linker Error
"_kCMTimeZero", referenced from:
Linker command failed with the exit code 1 (use -v to see invocation)
I have looked at the build phase and it has AVFoundation framework included.
Looked at other Apple Mach-O Linker Error, and which made me try doing a clean build, restarting XCode and the OS. But it didn't help.

You need the CoreMedia framework to use kCMTimeZero.

Related

linker command failed with exit code 1 (use -v to see invocation)

I Want to Integrate PayTmSDk in my app. But Im getting error while building.
ld: 9 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation).
Tried Removing -Objc flag from otherlinker flags, Im able to build, but I'm using PayPalSdk also which needs to add -Objc flag to other linker flags.
Please help me..
Thank you..
paytm also contain some reachability classes due to which duplicate error of reachability.o error comes; removed reachability.m from compile resources.

Apple mach -o- Linker Error

I am new to IOS development and i tried to resolve the error but nothing works. Provide some suggestion.
ld: library not found for -lPods-XXXXXXX-AppInvites
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Open the project using workspace (that was generated by CocoaPods) instead of the xcodeproj. I think this will resolve your issue. Otherwise there may be some library missing in CocoaPods.

Apple Mach-O Linker Error occurs after adding AFNetworking

When I add AFNetworking and build, Apple Mach-O Linker Error occur.
I saw Similar Questions but I couldn't any hints.
I added AFNetworking which is downloaded from GitHub to project.
The error message:
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have already added following frameworks.
・CFNetwork.framework
・Accelerate.framework
・SystemConfiguration.framework
・MobileCoreServices.framework
・Security.framework
・SenTestingKit.framework
How do I do to build?
By the way, I found description #import <CoreServices/CoreServices.h> in files of AFNetworking, but such framework is not found in Xcode.
Is this alright?

Getting error after updating xcode 5.0 to 5.1

I have updated the xcode 5.0 to 5.1 today. I run the existed project but getting the error now. I had no issues while running that project on 5.0 version. The error is below :
ld: library not found for -lIOKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please someone help.
I re-added the frameworks but now I get another error which is below
ld: 62 duplicate symbols for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Try going to your project configuration -> Build Settings -> Architechtures -> Valid architectures
Check if you've got the armv7s label duplicated.
You can also try to set to YES the Build Architechtures Only.
Please Check:- goto build setting, writing in search bar "GCC", check weather compiler is setup or not (LLMV 5.xx).

Apple Mach-0 Linker Error when building iOS app

I am making an iOS and I just installed CocoaPods with RESTKit. I also have JSON files. The Apple Mach-O Linker Error happens when I build and only started when I installed the CocoaPods with RESTKit.
Here is part of the error report.
ld: 586 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have a similar symptom occur when I have added a static library that included another library that I already had in the project. It may be that you already have a library included in your project that is also included int the CocoaPods with RESTKit.

Resources