Skip to content

Instantly share code, notes, and snippets.

@AyushBherwani1998
Created January 2, 2021 05:18
Show Gist options
  • Select an option

  • Save AyushBherwani1998/e5d42fb90c0ffa322f632764f464ec3f to your computer and use it in GitHub Desktop.

Select an option

Save AyushBherwani1998/e5d42fb90c0ffa322f632764f464ec3f to your computer and use it in GitHub Desktop.
Error logs while trying to add MagicSDK in flutter plugin podspec and running the example
dyld: Symbol not found: _$s13MagicSDK_Web30C8ProviderP4send7request8responseyAA10RPCRequestVyqd__G_yAA0C8ResponseVyqd_0_GctSeRd__SERd__SeRd_0_SERd_0_r0_lFTq
Referenced from: /Users/ayushbherwani/Library/Developer/CoreSimulator/Devices/6890CBDE-BD2F-4CEA-BC58-51511E52EC07/data/Containers/Bundle/Application/C55A211A-0B71-4F15-BB2E-83C814EDAF55/Runner.app/Frameworks/MagicSDK.framework/MagicSDK
Expected in: /Users/ayushbherwani/Library/Developer/CoreSimulator/Devices/6890CBDE-BD2F-4CEA-BC58-51511E52EC07/data/Containers/Bundle/Application/C55A211A-0B71-4F15-BB2E-83C814EDAF55/Runner.app/Frameworks/MagicSDK_Web3.framework/MagicSDK_Web3
in /Users/ayushbherwani/Library/Developer/CoreSimulator/Devices/6890CBDE-BD2F-4CEA-BC58-51511E52EC07/data/Containers/Bundle/Application/C55A211A-0B71-4F15-BB2E-83C814EDAF55/Runner.app/Frameworks/MagicSDK.framework/MagicSDK
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/ayushbherwani/Library/Developer/CoreSimulator/Caches/dyld/19G73/com.apple.CoreSimulator.SimRuntime.iOS-14-2.18B79
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_LIBRARY_PATH=/Users/ayushbherwani/Library/Developer/Xcode/DerivedData/Runner-cvwauozstcamoqcqrpbvruzfgrhp/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Develope
@Ethella
Copy link

Ethella commented Jan 12, 2021

Hi @AyushBherwani1998, the issue you encounter could be caused by the fact we recently added dynamic module support to support future swift compilers.

You may check for more detail here. CocoaPods/CocoaPods#9775 (comment)

There are two solutions here. The lines need to be added to the Podfile in the after-install hook. Or you may set Build library for distribution of MagicSDK to yes manually in the XCode.

If it still doesn't work for you, feel free to email me with any questions via [email protected]. I'll keep checking the thread here.

@AyushBherwani1998
Copy link
Author

AyushBherwani1998 commented Jan 13, 2021

Hey, I did try this, but it's raising other issues in the Flutter project like #import <Flutter/Flutter.h> not found while building the project.

Removing this config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' form podfile, deleting the podfile.lock and pods, running pod install the project builds successfully.

@Ethella
Copy link

Ethella commented Jan 14, 2021

Hmm, sorry that I may not be able to help when it comes to Flutter. Do you mind inviting me to the project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment