6 Replies Latest reply on Oct 23, 2013 1:06 PM by Jean Bordelon

    iOS AdSupport.framework problems.

      I am having problems getting AdSupport.framework to link in an iOS extension.  The framework is added to the extension project in xcode.  I am using Rhodes 4.0 and xcode 4.6.3.  I am totally stumped.  Let me know if you have any questions.  I appreciate any help here.  Thanks so much!

       

      The error that is triggered is...

       

      Ld build/Debug-iphonesimulator/rhorunner.app/rhorunner normal i386

          cd /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone

          setenv IPHONEOS_DEPLOYMENT_TARGET 4.3

          setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/jean/.rvm/gems/ruby-1.9.3-p448/bin:/Users/jean/.rvm/gems/ruby-1.9.3-p448@global/bin:/Users/jean/.rvm/rubies/ruby-1.9.3-p448/bin:/Users/jean/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"

          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/Debug-iphonesimulator -L/Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone -L/Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/Debug-iphonesimulator -L/Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/../../res/libs/motorolalicence/iphone -F/Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/Debug-iphonesimulator -filelist /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/rhorunner.build/Debug-iphonesimulator/rhorunner.build/Objects-normal/i386/rhorunner.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -filelist /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/rhorunner.build/Debug-iphonesimulator/rhorunner.build/rhodeslibs.txt -weak_framework EventKit -fobjc-link-runtime -Xlinker -no_implicit_dylibs -stdlib=libstdc++ -mios-simulator-version-min=4.3 -framework MediaPlayer -framework MobileCoreServices -framework CoreMotion -framework CoreMedia -framework CoreVideo -liconv /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/Debug-iphonesimulator/librhorubylib.a /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/Debug-iphonesimulator/librholib.a /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/Debug-iphonesimulator/libcurl.a /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/Debug-iphonesimulator/librhosynclib.a /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/Debug-iphonesimulator/librhoextlib.a -framework Foundation -framework UIKit -framework CoreFoundation -framework CoreLocation -lsqlite3.0 -framework AddressBook -framework SystemConfiguration -framework AudioToolbox -framework AVFoundation -framework CoreGraphics -lz -framework MapKit -framework CFNetwork -framework GameKit -framework Security -framework QuartzCore -framework EventKit -lMotorolaLicence -o /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/Debug-iphonesimulator/rhorunner.app/rhorunner

      Undefined symbols for architecture i386:

        "_OBJC_CLASS_$_ASIdentifierManager", referenced from:

            objc-class-ref in libRainbow.a(MCEnvironment.o)

        "_OBJC_CLASS_$_MFMailComposeViewController", referenced from:

            objc-class-ref in libRainbow.a(MobclixRichMediaWebAdView.o)

      ld: symbol(s) not found for architecture i386

      clang: error: linker command failed with exit code 1 (use -v to see invocation)

        • Re: iOS AdSupport.framework problems.
          Kutir Mobility

          Jean,

          can you tell us what steps you followed for adding Adsupport framework so that I can try the same on my RMS 4.0 with Xcode 4.6.3 .

           

          Visnupriya R

          Kutir Mobility

            • Re: iOS AdSupport.framework problems.

              Here are the steps I followed,

               

               

               

              Open extension xcode project file.

               

              Select ‘Build Phases’.

               

              Expand ‘Link Binary With Libraries’.

               

              Click the ‘+’.

               

              Add ‘AdSupport.framework’.

                • Re: iOS AdSupport.framework problems.
                  Kutir Mobility

                  Jean On my XCode 4.6.2 with Rhodes-3.5.1.13 its compiling fine. Will try with Rhodes 4.0 and let you know. Thanks Visnupriya Kutir Mobility

                    • Re: iOS AdSupport.framework problems.

                      I have downgraded to 3.5.1.12 have still have the errors, see below

                       

                      Ld build/Debug-iphonesimulator/rhorunner.app/rhorunner normal i386

                          cd /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone

                          setenv IPHONEOS_DEPLOYMENT_TARGET 4.3

                          setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/jean/.rvm/gems/ruby-1.9.3-p448/bin:/Users/jean/.rvm/gems/ruby-1.9.3-p448@global/bin:/Users/jean/.rvm/rubies/ruby-1.9.3-p448/bin:/Users/jean/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"

                          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/build/Debug-iphonesimulator -L/Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone -L/Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/build/Debug-iphonesimulator -L/Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/../../res/libs/motorolalicence/iphone -F/Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/build/Debug-iphonesimulator -filelist /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/build/rhorunner.build/Debug-iphonesimulator/rhorunner.build/Objects-normal/i386/rhorunner.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -filelist /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/build/rhorunner.build/Debug-iphonesimulator/rhorunner.build/rhodeslibs.txt -weak_framework EventKit -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -framework CoreMotion -framework CoreMedia -framework CoreVideo -liconv /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/build/Debug-iphonesimulator/librhorubylib.a /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/build/Debug-iphonesimulator/librholib.a /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/build/Debug-iphonesimulator/libcurl.a /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/build/Debug-iphonesimulator/librhosynclib.a /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/build/Debug-iphonesimulator/librhoextlib.a -framework Foundation -framework UIKit -framework CoreFoundation -framework CoreLocation -lsqlite3.0 -framework AddressBook -framework SystemConfiguration -framework AudioToolbox -framework AVFoundation -framework CoreGraphics -lz -framework MapKit -framework CFNetwork -framework GameKit -framework Security -framework QuartzCore -framework EventKit -lMotorolaLicence -o /Users/jean/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-3.5.1.12/platform/iphone/build/Debug-iphonesimulator/rhorunner.app/rhorunner

                      Undefined symbols for architecture i386:

                        "_MPMediaItemPropertyAlbumArtist", referenced from:

                            -[MobclixRichMediaWebAdView convertSongToDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                            -[MobclixRichMediaWebAdView querySongsWithParameterDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                        "_MPMediaItemPropertyAlbumTitle", referenced from:

                            -[MobclixRichMediaWebAdView convertSongToDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                            -[MobclixRichMediaWebAdView querySongsWithParameterDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                        "_MPMediaItemPropertyArtist", referenced from:

                            -[MobclixRichMediaWebAdView convertSongToDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                            -[MobclixRichMediaWebAdView querySongsWithParameterDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                        "_MPMediaItemPropertyComposer", referenced from:

                            -[MobclixRichMediaWebAdView convertSongToDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                            -[MobclixRichMediaWebAdView querySongsWithParameterDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                        "_MPMediaItemPropertyGenre", referenced from:

                            -[MobclixRichMediaWebAdView convertSongToDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                            -[MobclixRichMediaWebAdView querySongsWithParameterDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                        "_MPMediaItemPropertyTitle", referenced from:

                            -[MobclixRichMediaWebAdView convertSongToDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                            -[MobclixRichMediaWebAdView querySongsWithParameterDictionary:] in libRainbow.a(MobclixRichMediaWebAdView.o)

                        "_MPMoviePlayerContentPreloadDidFinishNotification", referenced from:

                            -[MobclixInteractiveVideoController initWithAd:] in libRainbow.a(MobclixInteractiveVideoController.o)

                        "_MPMoviePlayerPlaybackDidFinishNotification", referenced from:

                            -[MobclixInteractiveVideoController initWithAd:] in libRainbow.a(MobclixInteractiveVideoController.o)

                            +[MobclixAdActionController popOverVideoiPhoneFinishedPlaying:] in libRainbow.a(MobclixAdActionController.o)

                            +[MobclixAdActionController openPopOverVideoActionForAd:adView:] in libRainbow.a(MobclixAdActionController.o)

                            +[MobclixAdViewVideoController fullScreenVideoFinishedPlaying:] in libRainbow.a(MobclixAdViewVideoController.o)

                            +[MobclixAdViewVideoController fullScreenVideoModalFinishedPlaying:] in libRainbow.a(MobclixAdViewVideoController.o)

                            +[MobclixAdViewVideoController inlineVideoFinishedPlaying:] in libRainbow.a(MobclixAdViewVideoController.o)

                            +[MobclixAdViewVideoController playVideoURL:inView:viewController:] in libRainbow.a(MobclixAdViewVideoController.o)

                            ...

                            -[MobclixInteractiveVideoController initWithAd:] in libRainbow.a(MobclixInteractiveVideoController.o)

                            +[MobclixAdActionController popOverVideoiPhoneFinishedPlaying:] in libRainbow.a(MobclixAdActionController.o)

                            +[MobclixAdActionController openPopOverVideoActionForAd:adView:] in libRainbow.a(MobclixAdActionController.o)

                            +[MobclixAdViewVideoController fullScreenVideoFinishedPlaying:] in libRainbow.a(MobclixAdViewVideoController.o)

                            +[MobclixAdViewVideoController fullScreenVideoModalFinishedPlaying:] in libRainbow.a(MobclixAdViewVideoController.o)

                            +[MobclixAdViewVideoController inlineVideoFinishedPlaying:] in libRainbow.a(MobclixAdViewVideoController.o)

                            +[MobclixAdViewVideoController playVideoURL:inView:viewController:] in libRainbow.a(MobclixAdViewVideoController.o)

                            ...

                            -[MobclixInteractiveVideoController initWithAd:] in libRainbow.a(MobclixInteractiveVideoController.o)

                            +[MobclixAdActionController popOverVideoiPhoneFinishedPlaying:] in libRainbow.a(MobclixAdActionController.o)

                            +[MobclixAdActionController openPopOverVideoActionForAd:adView:] in libRainbow.a(MobclixAdActionController.o)

                            +[MobclixAdViewVideoController fullScreenVideoFinishedPlaying:] in libRainbow.a(MobclixAdViewVideoController.o)

                            +[MobclixAdViewVideoController fullScreenVideoModalFinishedPlaying:] in libRainbow.a(MobclixAdViewVideoController.o)

                            +[MobclixAdViewVideoController inlineVideoFinishedPlaying:] in libRainbow.a(MobclixAdViewVideoController.o)

                            +[MobclixAdViewVideoController playVideoURL:inView:viewController:] in libRainbow.a(MobclixAdViewVideoController.o)

                            ...

                        "_OBJC_CLASS_$_ASIdentifierManager", referenced from:

                            objc-class-ref in libRainbow.a(MCEnvironment.o)

                        "_OBJC_CLASS_$_MFMailComposeViewController", referenced from:

                            objc-class-ref in libRainbow.a(MobclixRichMediaWebAdView.o)

                        "_OBJC_CLASS_$_MPMediaPropertyPredicate", referenced from:

                            objc-class-ref in libRainbow.a(MobclixRichMediaWebAdView.o)

                        "_OBJC_CLASS_$_MPMediaQuery", referenced from:

                            objc-class-ref in libRainbow.a(MobclixRichMediaWebAdView.o)

                        "_OBJC_CLASS_$_MPMoviePlayerController", referenced from:

                            objc-class-ref in libRainbow.a(MobclixInteractiveVideoController.o)

                            objc-class-ref in libRainbow.a(MobclixPopOverVideoController.o)

                            objc-class-ref in libRainbow.a(MobclixAdActionController.o)

                            objc-class-ref in libRainbow.a(MobclixAdViewVideoController.o)

                      ld: symbol(s) not found for architecture i386

                      clang: error: linker command failed with exit code 1 (use -v to see invocation)