lightbasenl / react-native-panorama-view

A simple component for displaying panoramic images in your React Native app.
MIT License
129 stars 48 forks source link

Xcode11 build time error CTPanoramaView.modulemap fine not found #18

Open pierol opened 4 years ago

pierol commented 4 years ago

I've done all the suggestions on the readme especially on troubleshooting on iOS

module map file '/Users/piero/Library/Developer/Xcode/DerivedData/panoramaView01-auxocrldwcujkxffqyyqybhijqun/Build/Products/Debug-iphonesimulator/CTPanoramaView/CTPanoramaView.modulemap' I'm not an expert of Xcode enviroment. But when i try to run the project in the simulator i obtain that error. I set the SWIFT_VERSION 5.0 and the two paths.

Opening the .xcworkspace file and try to run it i obtain this link problem:

CoreGraphics.CGFloat, callHandler: Swift.Bool) -> () in libCTPanoramaView.a(CTPanoramaView.o)
  "_swift_unknownObjectWeakDestroy", referenced from:
      l_objectdestroy.2 in libCTPanoramaView.a(CTPanoramaView.o)
  "_swift_unknownObjectWeakInit", referenced from:
      CTPanoramaView.CTPanoramaView.(switchControlMethod in _3821582857EE54853BB6E602F18E6A47)(to: CTPanoramaView.CTPanoramaControlMethod) -> () in libCTPanoramaView.a(CTPanoramaView.o)
  "_swift_unknownObjectWeakLoadStrong", referenced from:
      closure #1 (__C.CMDeviceMotion?, Swift.Error?) -> () in CTPanoramaView.CTPanoramaView.(switchControlMethod in _3821582857EE54853BB6E602F18E6A47)(to: CTPanoramaView.CTPanoramaControlMethod) -> () in libCTPanoramaView.a(CTPanoramaView.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Showing Recent Issues
Could not find or use auto-linked library 'swiftCoreGraphics'

Could not find or use auto-linked library 'swiftDarwin'

Could not find or use auto-linked library 'swiftUIKit'

Could not find or use auto-linked library 'swiftObjectiveC'

Could not find or use auto-linked library 'swiftCoreFoundation'

Could not find or use auto-linked library 'swiftFoundation'

Could not find or use auto-linked library 'swiftsimd'

Could not find or use auto-linked library 'swiftGLKit'

Could not find or use auto-linked library 'swiftDispatch'

Could not find or use auto-linked library 'swiftCoreImage'

Could not find or use auto-linked library 'swiftQuartzCore'

Could not find or use auto-linked library 'swiftCore'

Could not find or use auto-linked library 'swiftSwiftOnoneSupport'

Could not find or use auto-linked library 'swiftSceneKit'

Could not find or use auto-linked library 'swiftMetal'

Could not find or use auto-linked library 'swiftModelIO'
wanghhh commented 4 years ago

Hello, is your problem solved? I also encountered the same problem, how did you solve it?

pierol commented 4 years ago

Sorry i didn't solve the problem and i couldn't use this component. The solution i've found is just an workaround because i wasn’t able to make that code to run correctly. I make server side page for a panorama view with the threejs library (https://threejs.org/examples/#webgl_panorama_equirectangular) and i’ve encapsuled it in a WebView expo component inside my app. This was the unique solution i’ve found with a managed expo app without eject it. See also this thread https://forums.expo.io/t/panorama-viewer-with-glview-expo-component/29156

jasonHav commented 4 years ago

I'm also running into this issue. Has anyone gotten it working in XCode 11?

songoten28 commented 3 years ago

I think add this lib by manually