alunny / ChildBrowser

cross-platform ChildBrowser plugin for PhoneGap/Cordova
104 stars 134 forks source link

Cordova 2.2.0 #24

Closed 0x6a68 closed 11 years ago

0x6a68 commented 11 years ago

Got following compile error

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_CDVPlugin", referenced from:
      _OBJC_CLASS_$_ChildBrowserCommand in ChildBrowserCommand.o
  "_OBJC_CLASS_$_CDVPluginResult", referenced from:
      objc-class-ref in ChildBrowserCommand.o
  "_OBJC_CLASS_$_CDVViewController", referenced from:
      _OBJC_CLASS_$_MainViewController in MainViewController.o
  "_OBJC_METACLASS_$_CDVPlugin", referenced from:
      _OBJC_METACLASS_$_ChildBrowserCommand in ChildBrowserCommand.o
  "_OBJC_METACLASS_$_CDVViewController", referenced from:
      _OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
0x6a68 commented 11 years ago

my fault... sorry

ChristianWeyer commented 11 years ago

What was your fault? I have the same... ;)

0x6a68 commented 11 years ago

it was a linking/referencing problem in xcode. Project Navigator -> Your Project -> Build Phases -> Link Binary With Libraries (ensure that libCordova.a is in there)

ChristianWeyer commented 11 years ago

Sorted that out as well, thx!

Am 13.11.2012 um 11:19 schrieb "Johannes Troeger" notifications@github.com<mailto:notifications@github.com>:

it was a linking/referencing problem in xcode. Project Navigator -> Your Project -> Build Phases -> Link Binary With Libraries (ensure that libCordova.a is in there)

— Reply to this email directly or view it on GitHubhttps://github.com/alunny/ChildBrowser/issues/24#issuecomment-10321508.

jbatchelor commented 11 years ago

My apologies if this is really n00b, but if libCordova.a is colored red in that list, does that mean the file is missing? If so, where do I find it?

alunny commented 11 years ago

If libCordova.a is red, it means it hasn't been built yet. You can choose to build it from the drop-down on the top-right of the Xcode window.

ttantawy commented 10 years ago

what if it is already there and i have this same error?

qetr1ck-op commented 10 years ago

Actually the same problem; added libCordova.a in Link Binary With Libraries; and problem with build still appear...

"_OBJCCLASS$_CDVPluginResult", referenced from: objc-class-ref in InAppPurchase.o "_OBJCMETACLASS$_CDVPlugin", referenced from: _OBJCMETACLASS$_ChildBrowserCommand in ChildBrowserCommand.o _OBJCMETACLASS$_Downloader in Downloader.o _OBJCMETACLASS$_InAppPurchase in InAppPurchase.o "_OBJCMETACLASS$_CDVViewController", referenced from: _OBJCMETACLASS$_MainViewController in MainViewController.o "_OBJCCLASS$_CDVPlugin", referenced from: _OBJCCLASS$_ChildBrowserCommand in ChildBrowserCommand.o _OBJCCLASS$_Downloader in Downloader.o _OBJCCLASS$_InAppPurchase in InAppPurchase.o "_OBJCCLASS$_CDVViewController", referenced from: _OBJCCLASS$_MainViewController in MainViewController.o ld: symbol(s) not found for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)

luohaiquan commented 8 years ago

@qetr1ck-op I have the same problem with you, so what's the solution ,thank you

vinaygiri commented 7 years ago

hi here also same issue any solutions please

Undefined symbols for architecture arm64: "_OBJCCLASS$_CDVPluginResult", referenced from: objc-class-ref in socialShare.o "_OBJCCLASS$_ZBarReaderViewController", referenced from: objc-class-ref in ChildBrowserCommand.o "_OBJCCLASS$_CDVViewController", referenced from: _OBJCCLASS$_MainViewController in MainViewController.o "_OBJCCLASS$_GAI", referenced from: objc-class-ref in GoogleAnalyticsPlugin.o "_OBJCCLASS$_CDVPlugin", referenced from: _OBJCCLASS$_GoogleAnalyticsPlugin in GoogleAnalyticsPlugin.o _OBJCCLASS$_ChildBrowserCommand in ChildBrowserCommand.o _OBJCCLASS$_socialShare in socialShare.o "_ZBarReaderControllerResults", referenced from: -[ChildBrowserCommand imagePickerController:didFinishPickingMediaWithInfo:] in ChildBrowserCommand.o "_OBJCMETACLASS$_CDVViewController", referenced from: _OBJCMETACLASS$_MainViewController in MainViewController.o "_OBJCMETACLASS$_CDVPlugin", referenced from: _OBJCMETACLASS$_GoogleAnalyticsPlugin in GoogleAnalyticsPlugin.o _OBJCMETACLASS$_ChildBrowserCommand in ChildBrowserCommand.o _OBJCMETACLASS$_socialShare in socialShare.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)