ibm-bluemix-mobile-services/bms-clientsdk-cordova-plugin-push

Termination Description: DYLD, can't resolve symbol | __TFC7BMSPush13BMSPushClientau14sharedInstanceS0_

Opened this issue · 2 comments

Hi,

When I launch app in iOS device the app is crashing while it tried to call BMS API's. However it won't crash when I run the same in iOS simulator. The crash reports shows.
(I'm using IBM Build Envoy to create ipa).

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, can't resolve symbol _TFC7BMSPush13BMSPushClientau14sharedInstanceS0 in /var/containers/Bundle/Application/918C0988-8D83-4467-BE32-33B6F5D47AC9/IBM RideShare.app/IBM RideShare because dependent dylib #9 could not be loaded

Kindly help with this issue.

Here is the configuration details of my dev environment.

screen shot 2017-01-16 at 12 20 17 pm
screen shot 2017-01-16 at 12 20 26 pm
screen shot 2017-01-16 at 12 20 49 pm
screen shot 2017-01-16 at 12 21 05 pm
screen shot 2017-01-16 at 12 21 25 pm

Thanks regards
sid.

Add the frameworks in Embedded Binaries ...

Hi Anantha,

Thanks for the reply.

I tried to add those frameworks in Embedded Binaries. But this time build is getting failed when I try to build the ipa using build envoy.

Here is the build fail error.

EXEC PBXCp /Library/Developer/Xcode/DerivedData/IBMRideShare-gellyadmrkhdbfeopitezyrqzxio/Build/Products/Debug-iphonesimulator/BMSAnalytics/BMSAnalytics.framework build/Distribution-iphoneos/IBM\ RideShare.app/Frameworks/BMSAnalytics.framework
EXEC cd /tmp/bf_projects/Test_Build_iOS_Debug_XCodeProj/BUILD_28833
EXEC export PATH="/Applications/Xcode82.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode82.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/beuser/BuildEnvoy/ant/bin"
EXEC builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -exclude Modules -strip-debug-symbols -strip-tool /Applications/Xcode82.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -bitcode-strip replace-with-marker -bitcode-strip-tool /Applications/Xcode82.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip -resolve-src-symlinks /Library/Developer/Xcode/DerivedData/IBMRideShare-gellyadmrkhdbfeopitezyrqzxio/Build/Products/Debug-iphonesimulator/BMSAnalytics/BMSAnalytics.framework /tmp/bf_projects/Test_Build_iOS_Debug_XCodeProj/BUILD_28833/build/Distribution-iphoneos/IBM\ RideShare.app/Frameworks
EXEC error: /Library/Developer/Xcode/DerivedData/IBMRideShare-gellyadmrkhdbfeopitezyrqzxio/Build/Products/Debug-iphonesimulator/BMSAnalytics/BMSAnalytics.framework: No such file or directory

The following build commands failed:
EXEC PBXCp /Library/Developer/Xcode/DerivedData/IBMRideShare-gellyadmrkhdbfeopitezyrqzxio/Build/Products/Debug-iphonesimulator/BMSAnalytics/BMSAnalytics.framework build/Distribution-iphoneos/IBM\ RideShare.app/Frameworks/BMSAnalytics.framework
EXEC PBXCp /Library/Developer/Xcode/DerivedData/IBMRideShare-gellyadmrkhdbfeopitezyrqzxio/Build/Products/Debug-iphonesimulator/BMSCore/BMSCore.framework build/Distribution-iphoneos/IBM\ RideShare.app/Frameworks/BMSCore.framework
PBXCp /Library/Developer/Xcode/DerivedData/IBMRideShare-gellyadmrkhdbfeopitezyrqzxio/Build/Products/Debug-iphonesimulator/BMSAnalyticsAPI/BMSAnalyticsAPI.framework build/Distribution-iphoneos/IBM\ RideShare.app/Frameworks/BMSAnalyticsAPI.framework
EXEC (3 failures)

Config

screen shot 2017-01-16 at 4 12 27 pm

Thanks
sid.