iPhone - ShareKit , SHK.m giving the compiler error for FileNot Found

后端 未结 5 372
旧时难觅i
旧时难觅i 2021-02-02 16:02

I am facing the issue while compiling my iphone project with ShareKit Integrated .I was working on that , everything was working fine till now , all of a sudden now its giving m

相关标签:
5条回答
  • 2021-02-02 16:41

    Yes new #import does solve the problem but give new error

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

    0 讨论(0)
  • 2021-02-02 16:44

    Are you using xcode 4.3? if yes then just replace

    #import </usr/include/objc/objc-class.h>
    

    this with #import <objc/runtime.h>

    0 讨论(0)
  • 2021-02-02 16:45

    The problem is with the line

        #import </usr/include/objc/objc-class.h> 
    

    It has to be

            #import <objc/message.h> 
            #import <objc/runtime.h>
    
    0 讨论(0)
  • 2021-02-02 16:52

    Import

    #import < Objc/message.h >

    #import < objc/runtime.h >

    Imstead OF

    import < /usr/include/objc/objc-class.h>

    And Change the Deployment Target to 7.0 and It has worked for Me.

    0 讨论(0)
  • 2021-02-02 17:01

    Yes new #import does solve the problem but give new error

    file - New OAuth Web Service.m
    file -  /shareKit/Template Src/ShareKit/New Web Service.m
    file - /shareKit/Template Src/ShareKit/New Action.m
    
    code - `«OPTIONALHEADERIMPORTLINE»`
    error - Expected identifier or '('
    
    0 讨论(0)
提交回复
热议问题