calabash / calabash-ios

Calabash for iOS
Other
1.81k stars 369 forks source link

While running the target i am facing issue - "clang: error: linker command failed with exit code 1 (use -v to see invocation)" #109

Closed dbharti closed 11 years ago

dbharti commented 11 years ago

Logs - Ld /Users/dbharti/Library/Developer/Xcode/DerivedData/TheTimes-gaaeoyxbfoupreawvppsqqcxjrwa/Build/Products/Debug-iphonesimulator/TheTimes-cal.app/TheTimes-cal normal i386 cd /Users/dbharti/TimesMarioiOS/ios/Products/TheTimes setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/dbharti/Library/Developer/Xcode/DerivedData/TheTimes-gaaeoyxbfoupreawvppsqqcxjrwa/Build/Products/Debug-iphonesimulator -L/Users/dbharti/TimesMarioiOS/ios/Products/TheTimes/Frameworks/OmnitureAnalytics -L/Users/dbharti/TimesMarioiOS/ios/Products/TheTimes/Frameworks/UrbanAirship -F/Users/dbharti/Library/Developer/Xcode/DerivedData/TheTimes-gaaeoyxbfoupreawvppsqqcxjrwa/Build/Products/Debug-iphonesimulator -F/Users/dbharti/TimesMarioiOS/ios/Products/TheTimes/Frameworks -F. -FDocumentation -Ffeatures -FFrameworks -FTheTimes -FTheTimesTest -FTheTimesUITests -Ffeatures/step_definitions -Ffeatures/support -FFrameworks/OmnitureAnalytics -FFrameworks/UrbanAirship -FTheTimes/Delegates -FTheTimes/Resources "-FTheTimes/Supporting Files" -FTheTimes/TandC.bundle -FTheTimesUITests/Data -FTheTimesUITests/Helpers -FFrameworks/UrbanAirship/Common -FFrameworks/UrbanAirship/External -FFrameworks/UrbanAirship/Library -FTheTimes/Resources/MarioPlatformResources -FTheTimes/Resources/TimesClassicUIResources "-FTheTimes/Supporting Files/Settings.bundle" -FTheTimes/TandC.bundle/welcome -FTheTimesUITests/Helpers/TestParsers -FFrameworks/UrbanAirship/External/UA_asi-http-request -FFrameworks/UrbanAirship/External/UA_fmdb -FFrameworks/UrbanAirship/External/UA_json-framework -FFrameworks/UrbanAirship/External/UA_ZipFile-OC -FFrameworks/UrbanAirship/Library/AirshipLib -FFrameworks/UrbanAirship/Library/InboxLib -FFrameworks/UrbanAirship/Library/PushLib -FFrameworks/UrbanAirship/Library/StoreFrontLib -FFrameworks/UrbanAirship/Library/SubscriptionLib -FTheTimes/Resources/MarioPlatformResources/CMSDataModel.xcdatamodeld -FTheTimes/Resources/MarioPlatformResources/Constants -FTheTimes/Resources/MarioPlatformResources/InAppBrowser -FTheTimes/Resources/MarioPlatformResources/MindGames -FTheTimes/Resources/MarioPlatformResources/MSTemplateProviderModel.xcdatamodeld -FTheTimes/Resources/TimesClassicUIResources/Constants -FTheTimes/Resources/TimesClassicUIResources/Fonts -FTheTimes/Resources/TimesClassicUIResources/Graphics -FTheTimes/Resources/TimesClassicUIResources/LocalizableStrings -FTheTimes/Resources/TimesClassicUIResources/TandC.bundle -FTheTimes/TandC.bundle/welcome/content -FFrameworks/UrbanAirship/External/UA_ZipFile-OC/UA_minizip "-FTheTimes/Resources/MarioPlatformResources/CMSDataModel.xcdatamodeld/CMSDataModel 2.xcdatamodel" "-FTheTimes/Resources/MarioPlatformResources/CMSDataModel.xcdatamodeld/CMSDataModel 3.xcdatamodel" "-FTheTimes/Resources/MarioPlatformResources/CMSDataModel.xcdatamodeld/CMSDataModel 4.xcdatamodel" "-FTheTimes/Resources/MarioPlatformResources/CMSDataModel.xcdatamodeld/CMSDataModel 5.xcdatamodel" "-FTheTimes/Resources/MarioPlatformResources/CMSDataModel.xcdatamodeld/CMSDataModel 6.xcdatamodel" "-FTheTimes/Resources/MarioPlatformResources/CMSDataModel.xcdatamodeld/CMSDataModel 7.xcdatamodel" "-FTheTimes/Resources/MarioPlatformResources/CMSDataModel.xcdatamodeld/CMSDataModel 8.xcdatamodel" -FTheTimes/Resources/MarioPlatformResources/CMSDataModel.xcdatamodeld/CMSDataModel.xcdatamodel -FTheTimes/Resources/MarioPlatformResources/MindGames/Crossword -FTheTimes/Resources/MarioPlatformResources/MindGames/Sudoku "-FTheTimes/Resources/MarioPlatformResources/MSTemplateProviderModel.xcdatamodeld/MSTemplateProviderModel 2.xcdatamodel" "-FTheTimes/Resources/MarioPlatformResources/MSTemplateProviderModel.xcdatamodeld/MSTemplateProviderModel 3.xcdatamodel" "-FTheTimes/Resources/MarioPlatformResources/MSTemplateProviderModel.xcdatamodeld/MSTemplateProviderModel 4.xcdatamodel" -FTheTimes/Resources/MarioPlatformResources/MSTemplateProviderModel.xcdatamodeld/MSTemplateProviderModel.xcdatamodel -FTheTimes/Resources/TimesClassicUIResources/Fonts/Didot -FTheTimes/Resources/TimesClassicUIResources/Fonts/Didot3 -FTheTimes/Resources/TimesClassicUIResources/Fonts/Flama -FTheTimes/Resources/TimesClassicUIResources/Fonts/Neutra -FTheTimes/Resources/TimesClassicUIResources/Fonts/Stag -FTheTimes/Resources/TimesClassicUIResources/Fonts/SundayTimes -FTheTimes/Resources/TimesClassicUIResources/Fonts/TimesClassic -FTheTimes/Resources/TimesClassicUIResources/Fonts/TimesModern -FTheTimes/Resources/TimesClassicUIResources/Fonts/TimesModernMagazine -FTheTimes/Resources/TimesClassicUIResources/Fonts/Velino -FTheTimes/Resources/TimesClassicUIResources/Graphics/EditionAlert -FTheTimes/Resources/TimesClassicUIResources/Graphics/FloorlineNavigation -FTheTimes/Resources/TimesClassicUIResources/Graphics/LayoutTransitionBlur -FTheTimes/Resources/TimesClassicUIResources/Graphics/ProgressSplashAssets -FTheTimes/Resources/TimesClassicUIResources/Graphics/Subscription -FTheTimes/Resources/TimesClassicUIResources/TandC.bundle/welcome -FTheTimes/TandC.bundle/welcome/content/css -FTheTimes/TandC.bundle/welcome/content/img -FTheTimes/TandC.bundle/welcome/content/js -FTheTimes/Resources/MarioPlatformResources/MindGames/Crossword/graphics -FTheTimes/Resources/MarioPlatformResources/MindGames/Crossword/nibs -FTheTimes/Resources/MarioPlatformResources/MindGames/Sudoku/graphics -FTheTimes/Resources/MarioPlatformResources/MindGames/Sudoku/nibs -FTheTimes/Resources/TimesClassicUIResources/Graphics/FloorlineNavigation/SectionsNavPopulation -FTheTimes/Resources/TimesClassicUIResources/TandC.bundle/welcome/content -FTheTimes/Resources/TimesClassicUIResources/TandC.bundle/welcome/content/css -FTheTimes/Resources/TimesClassicUIResources/TandC.bundle/welcome/content/img -F/Users/dbharti/TimesMarioiOS/ios/Products/TheTimes -filelist /Users/dbharti/Library/Developer/Xcode/DerivedData/TheTimes-gaaeoyxbfoupreawvppsqqcxjrwa/Build/Intermediates/TheTimes.build/Debug-iphonesimulator/TheTimes-cal.build/Objects-normal/i386/TheTimes-cal.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -lxml2 -force_load /Users/dbharti/TimesMarioiOS/ios/Products/TheTimes/calabash.framework/calabash -lstdc++ -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -licucore -framework CoreLocation -framework StoreKit -framework CoreTelephony -lsqlite3 -framework MobileCoreServices -framework Security -weak_framework NewsstandKit -framework QuartzCore -framework CFNetwork -lxml2 -lAppMeasurement -lz.1.2.5 -framework SystemConfiguration -framework CoreData -framework UIKit -framework Foundation -framework CoreGraphics -lUAirship-1.2.0 -framework Keychain -framework MSIdentity -framework MarioCore -framework MarioServices -framework MarioTimesClassicUI -framework MarioUI -o /Users/dbharti/Library/Developer/Xcode/DerivedData/TheTimes-gaaeoyxbfoupreawvppsqqcxjrwa/Build/Products/Debug-iphonesimulator/TheTimes-cal.app/TheTimes-cal

dbharti commented 11 years ago

i've fixed this issue and now running into another issue where app is crashing while running the target-cal. However its running fine while i run the original target. Please help me. Below is the exception i am getting

* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString colorFromHex]: unrecognized selector sent to instance 0x7d446b0' * First throw call stack: (0x285a012 0x2411e7e 0x28e54bd 0x2849bbc 0x284994e 0x148d2c 0x14371c7 0x1437232 0x140af1 0x14371c7 0x1437232 0x13863d5 0x1386cc1 0x55de7 0x1353157 0x1353747 0x135494b 0x1365cb5 0x1366beb 0x1358698 0x2d72df9 0x2d72ad0 0x27cfbf5 0x27cf962 0x2800bb6 0x27fff44 0x27ffe1b 0x135417a 0x1355ffc 0x5713d 0x553cd) libc++abi.dylib: terminate called throwing an exception

krukow commented 11 years ago

How did you fix the issue?

It is possible that the fix is the cause of the new issue.

dbharti commented 11 years ago

Hi Krukow, Thanks for asking, however i've fixed this issue by removing the 'other linker flags' parameter mentioned in the doc - https://github.com/calabash/calabash-ios. If you keep the default parameters - '-ObjC -all_load -lxml2' it works fine.

krukow commented 11 years ago

Closed