Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25752

iOS: 7.0.2 RC fails to build on device due to Ti.Media errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.2
    • Fix Version/s: Release 7.0.2
    • Component/s: iOS
    • Labels:
      None

      Description

      When trying to run a build on an iPhone X, I'm not able to build the current 7.0.2 RC. You get the following trace output:

      ```
      [TRACE] /build/iphone/Classes/MediaModule.m:257:52: error: use of undeclared identifier 'TiVideoPlayerPlaybackStateInterrupted'; did you mean 'MPNowPlayingPlaybackStateInterrupted'?
      [TRACE] MAKE_SYSTEM_PROP(VIDEO_PLAYBACK_STATE_INTERRUPTED, TiVideoPlayerPlaybackStateInterrupted);
      [TRACE] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [TRACE] MPNowPlayingPlaybackStateInterrupted
      [TRACE] In file included from /build/iphone/Classes/MediaModule.m:11:
      [TRACE] In file included from /build/iphone/Classes/MediaModule.h:15:
      [TRACE] In file included from /build/iphone/Classes/TiModule.h:10:
      [TRACE] In file included from /build/iphone/Classes/TiProxy.h:16:
      [TRACE] /build/iphone/Classes/TiBase.h:330:36: note: expanded from macro 'MAKE_SYSTEM_PROP'
      [TRACE] return [NSNumber numberWithInt:map]; \
      [TRACE] ^
      [TRACE] In module 'MediaPlayer' imported from /build/iphone/Classes/MediaModule.h:12:
      [TRACE] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h:49:5: note: 'MPNowPlayingPlaybackStateInterrupted' declared here
      [TRACE] MPNowPlayingPlaybackStateInterrupted
      [TRACE] ^
      [TRACE] /build/iphone/Classes/MediaModule.m:258:47: error: use of undeclared identifier 'TiVideoPlayerPlaybackStatePaused'; did you mean 'MPNowPlayingPlaybackStatePaused'?
      [TRACE] MAKE_SYSTEM_PROP(VIDEO_PLAYBACK_STATE_PAUSED, TiVideoPlayerPlaybackStatePaused);
      [TRACE] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [TRACE] MPNowPlayingPlaybackStatePaused
      [TRACE] In file included from /build/iphone/Classes/MediaModule.m:11:
      [TRACE] In file included from /build/iphone/Classes/MediaModule.h:15:
      [TRACE] In file included from /build/iphone/Classes/TiModule.h:10:
      [TRACE] In file included from /build/iphone/Classes/TiProxy.h:16:
      [TRACE] /build/iphone/Classes/TiBase.h:330:36: note: expanded from macro 'MAKE_SYSTEM_PROP'
      [TRACE] return [NSNumber numberWithInt:map]; \
      [TRACE] ^
      [TRACE] In module 'MediaPlayer' imported from /build/iphone/Classes/MediaModule.h:12:
      [TRACE] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h:47:5: note: 'MPNowPlayingPlaybackStatePaused' declared here
      [TRACE] MPNowPlayingPlaybackStatePaused,
      [TRACE] ^
      [TRACE] /build/iphone/Classes/MediaModule.m:259:48: error: use of undeclared identifier 'TiVideoPlayerPlaybackStatePlaying'; did you mean 'MPNowPlayingPlaybackStatePlaying'?
      [TRACE] MAKE_SYSTEM_PROP(VIDEO_PLAYBACK_STATE_PLAYING, TiVideoPlayerPlaybackStatePlaying);
      [TRACE] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [TRACE] MPNowPlayingPlaybackStatePlaying
      [TRACE] In file included from /build/iphone/Classes/MediaModule.m:11:
      [TRACE] In file included from /build/iphone/Classes/MediaModule.h:15:
      [TRACE] In file included from /build/iphone/Classes/TiModule.h:10:
      [TRACE] In file included from /build/iphone/Classes/TiProxy.h:16:
      [TRACE] /build/iphone/Classes/TiBase.h:330:36: note: expanded from macro 'MAKE_SYSTEM_PROP'
      [TRACE] return [NSNumber numberWithInt:map]; \
      [TRACE] ^
      [TRACE] In module 'MediaPlayer' imported from /build/iphone/Classes/MediaModule.h:12:
      [TRACE] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h:46:5: note: 'MPNowPlayingPlaybackStatePlaying' declared here
      [TRACE] MPNowPlayingPlaybackStatePlaying,
      [TRACE] ^
      [TRACE] /build/iphone/Classes/MediaModule.m:260:48: error: use of undeclared identifier 'TiVideoPlayerPlaybackStateStopped'; did you mean 'MPNowPlayingPlaybackStateStopped'?
      [TRACE] MAKE_SYSTEM_PROP(VIDEO_PLAYBACK_STATE_STOPPED, TiVideoPlayerPlaybackStateStopped);
      [TRACE] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [TRACE] MPNowPlayingPlaybackStateStopped
      [TRACE] In file included from /build/iphone/Classes/MediaModule.m:11:
      [TRACE] In file included from /build/iphone/Classes/MediaModule.h:15:
      [TRACE] In file included from /build/iphone/Classes/TiModule.h:10:
      [TRACE] In file included from /build/iphone/Classes/TiProxy.h:16:
      [TRACE] /build/iphone/Classes/TiBase.h:330:36: note: expanded from macro 'MAKE_SYSTEM_PROP'
      [TRACE] return [NSNumber numberWithInt:map]; \
      [TRACE] ^
      [TRACE] In module 'MediaPlayer' imported from /build/iphone/Classes/MediaModule.h:12:
      [TRACE] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h:48:5: note: 'MPNowPlayingPlaybackStateStopped' declared here
      [TRACE] MPNowPlayingPlaybackStateStopped,
      [TRACE] ^
      [TRACE] 4 errors generated.
      ```

      Resulting in:
      ```
      [ERROR] ** BUILD FAILED **
      [ERROR] The following build commands failed:
      [ERROR] CompileC build/Intermediates/app.build/Debug-iphoneos/app.build/Objects-normal/armv7/MediaModule.o Classes/MediaModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
      [ERROR] (1 failure)
      ```

      7.0.1.GA still works as expected with the same application code

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                jvandijk Jeroen van Dijk
                Reviewer:
                Vijay Singh
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6157
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code