lexical or preprocessor issue file not found occurs while archiving?

前端 未结 13 1253
难免孤独
难免孤独 2020-11-27 05:28

\"this

I am new to this iPhone development and i have almost completed my fi

相关标签:
13条回答
  • 2020-11-27 05:54

    Just adding another thing that worked for me :

    react-native link
    

    Evidently my ReactNative files were no longer there. I could figure that out by clicking on

    Build Phases -> Link Binary with Libraries ->

    Then right clicking a file I knew was responsible for React, and clicking Show In Finder .

    But nothing opened. So assuming the library went missing, I just ran the above command which relinked everything again.

    Also if you havn't, try :

    rm -rf node_modules/ && npm install
    
    0 讨论(0)
  • 2020-11-27 05:55

    The new version contain fix for this, feel free to update. Or you can just replace

    #include "iPhone_View.h"
    

    with

    #if UNITY_VERSION < 450
    
    #include "iPhone_View.h"
    
    #endif
    
    0 讨论(0)
  • 2020-11-27 05:57

    I had this problem after changed project name. I used all the methods mentioned on the internet but still doesn't work. Then I realized that all the header files not found was from cocoapods, so I re-installed the cocoapods using pod install, and thus solved the problem.

    Hope this could help.

    0 讨论(0)
  • 2020-11-27 05:57

    I fixed mine. The fb sdk downloaded (from my browser) as 'FacebookSDKs-iOS-4.22.0' -- I just had to rename the folder to FacebookSDK. So now in Build

    Settings --> Framework Search Paths

    the path looks something like /Users/.../Documents/FacebookSDK (where as before it was /Users/.../Documents/FacebookSDKs-iOS-4.22.0) Hope this helps!

    0 讨论(0)
  • 2020-11-27 06:01

    My project was building fine until I updated to Xcode 10.1. After the Xcode update, started getting Lexical or preprocessor Issue errors on build. Some XCDataModel header files could not be found.

    This fixed the issue.

    Go to Build Settings, Header Search Paths Change the appropriate value from $(SRCROOT) non-recursive to recursive.

    This ensures that subfolders are also searched for headers during build.

    0 讨论(0)
  • 2020-11-27 06:02

    I know this is old, but I'm gonna chime in anyway because it may be useful to someone. If you can still see the file in Finder, then click on the file in your project and delete it, selecting "remove references" and not "move to trash".

    Once the reference is removed, drag and drop the file from finder into your project again and it should sort itself out.

    0 讨论(0)
提交回复
热议问题