Reputation: 831
my app is running well on simulator but when tried to run it on iPhone6 device the following two errors turned up :
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_CustomView", referenced from: objc-class-ref in TransparentView.o
and
ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
the CustomView is header file included in staticLibrary the code which I have is :
#import <UIKit/UIKit.h>
#import <CoreMotion/CoreMotion.h>
#import <CoreLocation/CoreLocation.h>
@interface CustomView : UIView<CLLocationManagerDelegate>
@property (strong, nonatomic)NSMutableDictionary* reducedlatLongDict;
@property (strong, nonatomic) NSMutableArray *reducednamesRequiredToLoad;
-(NSMutableArray*)sendTheDataToMainClass:(NSDictionary*)sendDictyionary :(NSString*)filterString1;
-(NSMutableArray*)gettingTheHeading:(CLHeading*)newHeading;
-(NSMutableArray*)getTheLocationUpdate:(CLLocation*)newLocation :(CLLocation*)fromLocation;
@end
Upvotes: 0
Views: 70
Reputation: 40018
Your static library is missing arm64
architecture.
You can check the architecture supported by your lib by the following command in terminal
lipo --info /path/to/yourLib.a
If it's your own lib the you might have to change to architecture and rebuild it again.
Upvotes: 1