Header file (.h) not found

Asked 2 years ago, Updated 2 years ago, 40 views


To load an Objective-C class in Swift I created a file called SocketRocket-Bridge-Header.h and included import.

#ifndef RemoteControl_SocketRocket_Bridge_Header_h
#define RemoteControl_SocketRocket_Bridge_Header_h
# import "SRWEBSocket.h"
#endif


under Objective-C Bridging Header in Build Settings $(SRCROOT)/$(PRODUCT)/RemoteControl/SocketRocket-Bridge-Header.h
is set to , but the following error occurs:
/Users/sagyo/Copy/iPhone app/RemoteControl/RemoteControl/SocketRocket-Bridge-Header.h:12:9:'SRWEBSocket.h'file not found

The full path to SRWEBSocket.h is
/Users/sagyo/Copy/iPhone app/RemoteControl/RemoteControl/SocketRocket-BrHeader.h
That's it.

Restarting XCode does not fix the error.

Always Search User Paths is also enabled (YES).But I get an error.

If you know how to deal with it, please let me know.

swift xcode

2022-09-29 22:55

2 Answers

I have a bad feeling about the Japanese pass name.
Try romanizing the name of the app (I think various paths will affect you, so if possible, create a new app with a minimum).


2022-09-29 22:55

Why don't you try #import full pass


2022-09-29 22:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.