[ad_1]
I refactored some code in my iOS app and have began receiving the next error
Undefined symbols for structure x86_64:
“OBJC_CLASS$_UBApplicationStartupReasonReporterNotificationRelay”,
referenced from: objc-class-ref in AppDelegate.o ld: image(s) not
discovered for structure x86_64 clang: error: linker command failed with
exit code 1 (use -v to see invocation)
So here’s what I did..
Earlier I had all of the information at root. To organise I moved all information below new folder vendor/ios-startup-reporter/{information}.{h,m}
Then created a file vendor/StartupReporter.h which comprises following content material
#import "ios-startup-reporter/UBApplicationStartupReasonReporterNotificationRelay.h"
#import "ios-startup-reporter/UBApplicationStartupReasonReporter.h"
#import "ios-startup-reporter/UBApplicationStartupReasonReporterPriorRunInfo.h"
#import "ios-startup-reporter/UBApplicationStartupReasonReporterPriorRunInfoProtocol.h"
now, In AppDelegate Once I import it like this (#import "vendor/StartupReporter.h")
#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>
#import <UserNotifications/UNUserNotificationCenter.h>
#import "vendor/StartupReporter.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, UNUserNotificationCenterDelegate>
@property (nonatomic, sturdy) UIWindow *window;
@property (nonatomic, sturdy) UBApplicationStartupReasonReporterNotificationRelay *notificationRelay;
@finish
I get the above error,
Can somebody assist me what I’m doing mistaken and the way I can repair it?
[ad_2]
