can't compile for tvOS: "duplicate symbol _toNSStr"

iOS, iPad, iPhone, tvOS specific usage questions
qoyooo
New Cone
New Cone
Posts: 1
Joined: 13 Mar 2016 17:50

can't compile for tvOS: "duplicate symbol _toNSStr"

Postby qoyooo » 13 Mar 2016 18:59

Hi all!

I'm
I try to build vlc for Apple TV, but get the following errors:


Ld /Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/VLC-TV.app/VLC-TV normal arm64
cd /Users/apple/Documents/MyCodeSpace/vlc-ios-tv1.0.2
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export TVOS_DEPLOYMENT_TARGET=9.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS9.1.sdk -L/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos -L/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS9.1.sdk/usr/lib/system -F/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos -F/Users/apple/Documents/MyCodeSpace/vlc-ios-tv1.0.2/ImportedSources/HockeySDK-tvOS/Vendor -filelist /Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Intermediates/VLC\ for\ iOS.build/Debug-appletvos/VLC-TV.build/Objects-normal/arm64/VLC-TV.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mtvos-version-min=9.0 -dead_strip -fembed-bitcode-marker -ObjC -ObjC -lAFNetworking -lMetaDataFetcherKit -lNSData+Base64 -lOROpenSubtitleDownloader -lPods-VLC-TV-CocoaHTTPServer -lPods-VLC-TV-SSKeychain -lPods-VLC-TV-box-ios-sdk-v2 -lPods-VLC-TV-upnpx -lc++ -lxml2 -lxmlrpc -lz -framework CFNetwork -framework Foundation -framework QuartzCore -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -lLiveTVSDK -framework AVFoundation -lc++ -liconv -framework OpenGLES /Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/DropboxTVSDK.framework/DropboxTVSDK -framework CoreText -framework AudioToolbox -weak-lTVVLCKit /Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/HockeySDK.framework/HockeySDK -lPods-VLC-TV -Xlinker -dependency_info -Xlinker /Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Intermediates/VLC\ for\ iOS.build/Debug-appletvos/VLC-TV.build/Objects-normal/arm64/VLC-TV_dependency_info.dat -o /Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/VLC-TV.app/VLC-TV

duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCAudio.o)
duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEventManager.o)
duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCLibrary.o)
duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCDialogProvider.o)
duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCMedia.o)
duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCMediaList.o)
duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCMediaPlayer.o)
duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCMediaListPlayer.o)
duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCMediaThumbnailer.o)
duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCMediaDiscoverer.o)
duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCCustomDialogProvider.o)
duplicate symbol _toNSStr in:
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCEmbeddedDialogProvider.o)
/Users/apple/Library/Developer/Xcode/DerivedData/VLC_for_iOS-gdlgrtwxmeujapetmbexjvkehpkr/Build/Products/Debug-appletvos/libTVVLCKit.a(VLCTime.o)
ld: 12 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


how can i fix it, thanks.

PlatypusW
New Cone
New Cone
Posts: 3
Joined: 15 Mar 2016 00:58

Re: can't compile for tvOS: "duplicate symbol _toNSStr"

Postby PlatypusW » 15 Mar 2016 21:26

I am also getting this for the latest nightly when compiling for iOS. I have rolled back to using the 7th March version.

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: can't compile for tvOS: "duplicate symbol _toNSStr"

Postby fkuehne » 22 Mar 2016 15:55

Just FYI, this was fixed last week.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

PlatypusW
New Cone
New Cone
Posts: 3
Joined: 15 Mar 2016 00:58

Re: can't compile for tvOS: "duplicate symbol _toNSStr"

Postby PlatypusW » 25 Mar 2016 19:01

Just FYI, this was fixed last week.
Thank you for letting us know Felix, I'll try the latest build when I can :)


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 36 guests