This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
Hello,
I am trying to import AEPCore module in my objective-c file using
@Import AEPCore;
but seeing following build error : -
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_AEPMobileCore", referenced from: objc-class-ref in AEPUtils.o
Ignoring file /<DERIVED_DATA_DIRECTORY>/Build/Products/Debug.Stage-iphonesimulator/AEPCore.o, building for iOS Simulator-x86_64 but attempting to link with file built for unknown-arm64
Undefined symbol: _OBJC_CLASS_$_AEPMobileCore |
When I saw supported architecture for the AEPCore library code, it was only available for ARCHS_STANDARD, due to this project's build is failing.
Also when we are trying to import the same lib in swift file, seeing following error
Could not find module 'AEPCore' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator, at: /Users/nbhawsar/Library/Developer/Xcode/DerivedData/Theo-aagcberfiecdfmgpwhvoojbngfoy/Build/Products/Debug.Stage-iphonesimulator/AEPCore.swiftmodule |
Any help for this error is much appreciated.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
it also looks like you are maybe using an m1 and trying to build for simulator which means you are running into architeture issues. For a quick workaround turn on rosetta for xcode and simulator so that it doesn't try to build everything as arm64 architecture for the sim
Views
Replies
Total Likes
Which version of SDK are you using? If it is not the latest, could you try with the latest?
Views
Replies
Total Likes
Undefined symbol: _OBJC_CLASS_$_AEPMobileCore
means that the library is not linked
try to go into the "build phases" section of the target's settings in xcode and ensure that under 'link binary with libraries' that the AEP libraries are listed there
Views
Replies
Total Likes
it also looks like you are maybe using an m1 and trying to build for simulator which means you are running into architeture issues. For a quick workaround turn on rosetta for xcode and simulator so that it doesn't try to build everything as arm64 architecture for the sim
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies