0

I have to deleted the libNativeStrands.a file which uses UIWebView. After that I am getting the below error OBJC_CLASS$_IMNativeStrands",InMobi

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_IMNativeStrands", referenced from:
      objc-class-ref in IMNativeAdTableCell.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
sejn
  • 2,040
  • 6
  • 28
  • 82

1 Answers1

0

IMNativeAdTableCell.m seems to be still referencing libNativeStrands.

  1. check the architecture you are building for.
  2. Check for the class IMNativeStrands in your code.
  3. Clean up derived data directory(may be you have done it already. /Users//Library/Developer/Xcode/DerivedData//Build/
Dharman
  • 30,962
  • 25
  • 85
  • 135
Bharath NS
  • 43
  • 7
  • I have deleted the derived data. Excluded arch has arm64 – sejn Mar 02 '22 at 17:53
  • what about IMNativeStrands.m did you check? – Bharath NS Mar 03 '22 at 01:57
  • Yes, IMNativeStrands.m is a file which is used and available under the INMobi. It is manually added or linked in the Xcode. – sejn Mar 03 '22 at 02:57
  • Sorry, is IMNativeStrands part of the .a? Is IMNativeAdTableCell part of the project? – Bharath NS Mar 03 '22 at 03:00
  • So this is what I assume is happening. IMNativeAdTableCell is part of the project and IMNativeStrands is part of the .a library now you have removed .a library so obviously IMNativeStrands will not be built and the symbol will not be found!. – Bharath NS Mar 03 '22 at 03:05
  • Yes, it correct. So how can I import the euivalent using the InMobi.xcframework. IMNativeStrands is InMobi/IMNativeStrands.h InMobi/IMNativeDelegate.h – sejn Mar 03 '22 at 03:06
  • After deleting the InMobi it shows the error as Classes/IMNativeAdTableCell.h:10:9: fatal error: 'IMNativeStrandsDelegate.h' file not found #import "IMNativeStrandsDelegate.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated – sejn Mar 03 '22 at 03:09
  • ya sorry I cannot help any more looks like you need the library why are you removing it in the first place? – Bharath NS Mar 03 '22 at 03:41
  • if you want to use .xcframework then just include it in buildphases-> link with libraries – Bharath NS Mar 03 '22 at 03:43
  • Because the IMNativeStrands.a using the UIWebView. So I am removing it – sejn Mar 03 '22 at 03:47
  • ok if .xcframework is newer one then include .xcframework and use the appropriate classes – Bharath NS Mar 03 '22 at 04:02
  • share your code and the InMobi xcframework link here if you need some help – Bharath NS Mar 03 '22 at 04:02
  • https://support.inmobi.com/monetize/sdk-documentation/ios-guidelines/overview-ios-guidelines#add-inmobi%C2%A0sdk – sejn Mar 03 '22 at 06:26