Issue with compiling to iOS simulator

Solved!
Posted in General by David Kachlon Sat Oct 07 2017 22:23:47 GMT+0000 (UTC)·4·Viewed 424 times

Here's my error log l ld: warning: directory not found for option '-F/Users/houseofpawn/Library/Developer/Xcode/DerivedData/slate-gyngmniacfplazafvcnuevqwzjqh/Build/Products/Debug-iphonesimulator/MBProgressHUD' ld: warning: directory not found for option '-F3/Pods/Target' ld: warning: directory not found for option '-FSupport' ld: warning: directory not found for option '-FFiles/Pods-slate' ld: warning: ignoring file /Users/houseofpawn/Downloads/slate 3/slate/lib/arm_iOS/lib/libISKN_API.a, missing required architecture x86_64 in file /Users/houseofpawn/Downloads/slate 3/slate/lib/arm_iOS/lib/libISKN_API.a (2 slices) Undefined symbols for architecture x86_64: "ISKN_API::EventStatus::getBattery()", referenced from: iSketchnoteController::processEvent(ISKN_API::Event&, unsigned int) in iSketchnoteController.o "ISKN_API::EventDescription::getDeviceName()", referenced from: iSketchnoteController::processEvent(ISKN_API::Event&, unsigned int) in iSketchnoteController.o "ISKN_API::EventSoftware::getObjectID()", referenced from: iSketchnoteController::processEvent(ISKN_API::Event&, unsigned int) in iSketchnoteController.o "ISKN_API::EventSoftware::getSoftwareEventType()", referenced from: iSketchnoteController::processEvent(ISKN_API::Event&, unsigned int) in iSketchnoteController.o "ISKN_API::EventPen2D::getPosition()", referenced from: iSketchnoteController::processEvent(ISKN_API::Event&, unsigned int) in iSketchnoteController.o "ISKN_API::EventPen2D::Touch()", referenced from: iSketchnoteController::processEvent(ISKN_API::Event&, unsigned int) in iSketchnoteController.o "ISKN_API::SlateManager::request(ISKN_API::SingleRequestBlockType)", referenced from: iSketchnoteController::connectionStatusChanged(bool) in iSketchnoteController.o "ISKN_API::SlateManager::registerListener(ISKN_API::Listener*)", referenced from: iSketchnoteController::iSketchnoteController(DeviceListViewController*) in iSketchnoteController.o iSketchnoteController::iSketchnoteController(NSString*) in iSketchnoteController.o "ISKN_API::SlateManager::SlateManager(ISKN_API::CommLayerType)", referenced from: iSketchnoteController::iSketchnoteController(DeviceListViewController*) in iSketchnoteController.o iSketchnoteController::iSketchnoteController(NSString*) in iSketchnoteController.o "ISKN_API::SlateManager::startScan(BleScanListener*)", referenced from: iSketchnoteController::iSketchnoteController(DeviceListViewController*) in iSketchnoteController.o iSketchnoteController::iSketchnoteController(NSString*) in iSketchnoteController.o "ISKN_API::EventDescription::getActiveZone()", referenced from: iSketchnoteController::processEvent(ISKN_API::Event&, unsigned int) in iSketchnoteController.o "ISKN_API::SlateManager::disconnect()", referenced from: _disconnect in iSketchnoteController.o "ISKN_API::SlateManager::connect(CBPeripheral*)", referenced from: _connectToSlate in iSketchnoteController.o _connectToPeripheralByName in iSketchnoteController.o _connectToPeripheral in iSketchnoteController.o "ISKN_API::SlateManager::getDeviceByID(int)", referenced from: _connectToSlate in iSketchnoteController.o "ISKN_API::SlateManager::connect()", referenced from: _connectToFirstAvailableDevice in iSketchnoteController.o iSketchnoteController::connectionStatusChanged(bool) in iSketchnoteController.o "ISKN_API::SlateManager::connect(NSString*)", referenced from: iSketchnoteController::iSketchnoteController(NSString*) in iSketchnoteController.o "ISKN_API::EventHardware::getHardwareEventType()", referenced from: iSketchnoteController::processEvent(ISKN_API::Event&, unsigned int) in iSketchnoteController.o "ISKN_API::SlateManager::isConnected()", referenced from: _isDeviceConnected in iSketchnoteController.o "ISKN_API::SlateManager::subscribe(ISKN_API::AutoBlockType)", referenced from: iSketchnoteController::connectionStatusChanged(bool) in iSketchnoteController.o "ISKN_API::SlateManager::getDevicesList()", referenced from: _connectToPeripheralByName in iSketchnoteController.o iSketchnoteController::processEvent(ISKN_API::Event&, unsigned int) in iSketchnoteController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Any ideas ?
steven valsesia
Oct 9, 2017

Hi,

I think this error is the main problem :
ld: symbol(s) not found for architecture x86_64

Do you know if you are building for 32bits or 64 bits?

David Kachlon
Oct 9, 2017

64 bits

steven valsesia
Oct 10, 2017

I think I found the problem :

ld: warning: ignoring file /Users/houseofpawn/Downloads/slate 3/slate/lib/arm_iOS/lib/libISKN_API.a

You are linking the "arm_iOS" library while the simulator need the "x86_64" version.


steven valsesia marked this as solved
Markdown is allowed