6 Replies Latest reply on Nov 20, 2015 8:51 AM by moz.art

    Undefined symbols for architecture x86_64

    barunh92668322

      I am trying to build plugin for AI CC in Xcode 6.3.2-

      I have followed the doc "getting-started-guide.pdf", my project set up differ on some points from the doc, given below-

       

      >Base SDK-> OS X 10.9

      >Compiler forC/C++/Objective C -> Apple LLVM 6.1

      >Deployment Target -> OS X 10.9



      All other settings are as per guidelines.

      Now, when I am trying to build, I am getting below error, I have no clue how to resolve this.

       

      Ld /Users/Barun/Adobe\ Illustrator\ CC\ 2014\ SDK/samplecode/output/mac/debug/HelloWorld.bundle/Contents/MacOS/HelloWorld normal x86_64

          cd "/Users/Barun/Adobe Illustrator CC 2014 SDK/samplecode/HelloWorld"

          export MACOSX_DEPLOYMENT_TARGET=10.10

          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cl ang++ -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOS X10.10.sdk -L/Users/Barun/Adobe\ Illustrator\ CC\ 2014\ SDK/samplecode/output/mac/debug -F/Users/Barun/Adobe\ Illustrator\ CC\ 2014\ SDK/samplecode/output/mac/debug -filelist /Users/Barun/Library/Developer/Xcode/DerivedData/HelloWorld-dulanxbqowshwbfdzdduoknjoryx/ Build/Intermediates/HelloWorld.build/Debug/HelloWorld.build/Objects-normal/x86_64/HelloWor ld.LinkFileList -mmacosx-version-min=10.10 -stdlib=libc++ -Xlinker -dependency_info -Xlinker /Users/Barun/Library/Developer/Xcode/DerivedData/HelloWorld-dulanxbqowshwbfdzdduoknjoryx/ Build/Intermediates/HelloWorld.build/Debug/HelloWorld.build/Objects-normal/x86_64/HelloWor ld_dependency_info.dat -o /Users/Barun/Adobe\ Illustrator\ CC\ 2014\ SDK/samplecode/output/mac/debug/HelloWorld.bundle/Contents/MacOS/HelloWorld

       

      Undefined symbols for architecture x86_64:

        "_CFStringCreateWithCharacters", referenced from:

            ai::UnicodeString::as_CFString(__CFAllocator const*) const in IAIUnicodeString.o

        "_CFStringGetCharacters", referenced from:

            ai::UnicodeString::UnicodeString(__CFString const* const&) in IAIUnicodeString.o

        "_CFStringGetCharactersPtr", referenced from:

            ai::UnicodeString::UnicodeString(__CFString const* const&) in IAIUnicodeString.o

        "_CFStringGetLength", referenced from:

            ai::UnicodeString::UnicodeString(__CFString const* const&) in IAIUnicodeString.o

      ld: symbol(s) not found for architecture x86_64

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

       

      Please let me know, any other information required.