"Foundation/foundation.h" not found error with Theos - ios

I get an error like this when i am trying to compile my tweak. What should i do?
/var/theos/Prefix.pch:9:11: fatal error: 'Foundation/Foundation.h'
file not found
#import <Foundation/Foundation.h>
^

Related

Xamarin IOS binding

I am creating binding with Pod , After running Sharpie command i frequently get error regarding , Header not found in the File. I have checked the file after opening but header was already there. Let me know if anyone face the same issue.
Error Details are below:-
'Realm/Realm.h' file not found
#import <Realm/Realm.h>
^~~~~~~~~~~~~~~
/private/var/folders/y4/n93ks58x7vd1dl2fr7j9v6mw0000gn/T/com.xamarin.ObjectiveSharpie/11d3f185b30343fe978184fe0a7e4722.h:1:9: fatal error:
could not build module 'MatrixSDK'
#import MatrixSDK;
Binding...
846 warnings and 2 errors generated.
Error while processing /private/var/folders/y4/n93ks58x7vd1dl2fr7j9v6mw0000gn/T/com.xamarin.ObjectiveSharpie/11d3f185b30343fe978184fe0a7e4722.h.
Done. Exiting with error code 1.

Fastlane + ReactNative 0.40 does not compile

Since updating to React native 0.40 that now supported namespaces, my project will not compile.
So what was before:
#import "RCTEventEmitter.h"
is now:
#import <React/RCTEventEmitter.h>
How can I define this for Fastlane to compile?
Error:
'React/RCTEventEmitter.h' file not found
#import <React/RCTEventEmitter.h>
^

LLDB Issue with FBSDK, whenever I put a breakpoint I get an error and I'm unable to print any variable

Whenever I put a breakpoint and try to access any variable I get this error.
If I try to print a variable in the console, I get this error:
(lldb) p someVar
error: Error in auto-import:
failed to get module 'Jogabo' from AST context:
/Users/pg/Jogabo/app-v2/ios- app/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h:21:9: note: while building module 'FBSDKCoreKit' imported from /Users/pg/Jogabo/app-v2/ios- app/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h:21:
#import <FBSDKCoreKit/FBSDKButton.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/pg/Jogabo/app-v2/ios-app/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-umbrella.h"
^
/Users/pg/Jogabo/app-v2/ios-app/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-umbrella.h:6:9: note: in file included from /Users/pg/Jogabo/app-v2/ios-app/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-umbrella.h:6:
#import "FBSDKAppLinkResolver.h"
^
/Users/pg/Jogabo/app-v2/ios- app/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppLinkResolver.h:26:1 0: error: include of non-modular header inside framework module 'FBSDKCoreKit.FBSDKAppLinkResolver'
# import <Bolts/BFAppLinkResolving.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/pg/Jogabo/app-v2/ios-app/Pods/Target Support Files/FBSDKLoginKit/FBSDKLoginKit-umbrella.h"
^
/Users/pg/Jogabo/app-v2/ios-app/Pods/Target Support Files/FBSDKLoginKit/FBSDKLoginKit-umbrella.h:3:9: note: in file included from /Users/pg/Jogabo/app-v2/ios-app/Pods/Target Support Files/FBSDKLoginKit/FBSDKLoginKit-umbrella.h:3:
#import "FBSDKLoginButton.h"
^
/Users/pg/Jogabo/app-v2/ios- app/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h:21:9: error: could not build module 'FBSDKCoreKit'
#import <FBSDKCoreKit/FBSDKButton.h>
^
could not build Objective-C module 'FBSDKLoginKit'A fatal parse error has occurred. LLDB may become unstable; please restart your debug session as soon as possible.

Import a file from own project in pod library

I've installed an open source library with Cocoapods where I can make adjustments but I can't import a file in my own project into the open source file. Is it possible?
Below are the possibilities that I tried
// In the open source file
#import "MyClassFileInOwnProject.h" -- Error: file not found
#import <MyClassFileInOwnProject.h> -- Error: file not found
#import "ProjectFolderName/MyClassFileInOwnProject.h" -- Error: file not found
#import <ProjectFolderName/MyClassFileInOwnProject.h> -- Error: file not found

Can't debug my iOS project since updating to cocoa pods to use_frameworks! for Swift

After cocoapods 0.38.0 I updated my project to use_frameworks! so that I can make use of Swift modules.
Now whenever I try and debug via lldb I get the following error:
error: Error in auto-import:
failed to get module 'my-app-name' from AST context:
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Path/To/Project/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-umbrella.h"
^
/Path/To/Project/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-umbrella.h:6:9: note: in file included from /Path/To/Project/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-umbrella.h:6:
#import "FBSDKAppLinkResolver.h"
^
/Path/To/Project/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppLinkResolver.h:26:10: error: include of non-modular header inside framework module 'FBSDKCoreKit.FBSDKAppLinkResolver'
# import <Bolts/BFAppLinkResolving.h>
^
could not build Objective-C module 'FBSDKCoreKit'<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Path/To/Project/Pods/Target Support Files/FBSDKLoginKit/FBSDKLoginKit-umbrella.h"
^
/Path/To/Project/Pods/Target Support Files/FBSDKLoginKit/FBSDKLoginKit-umbrella.h:3:9: note: in file included from /Path/To/Project/Pods/Target Support Files/FBSDKLoginKit/FBSDKLoginKit-umbrella.h:3:
#import "FBSDKLoginButton.h"
^
A fatal parse error has occurred. LLDB may become unstable; please restart your debug session as soon as possible.
I did a bit of digging and found that if you set Allow Non-modular Includes in Framework Modules to yes for the FBSDKCoreKit target in the Pods project, that fixes the LLDB errors.

Resources