6 Replies
      Latest reply on Sep 4, 2019 7:05 AM by KMT
      whoozy Level 1 Level 1 (0 points)

        The AVReaderWriter was last updated in 2016 for Swift 2.3. I am a newby, and have been unable to upgrade or convert it using the Xcode tools. I tried going from Swift 2 to 3, in preparation of going from 3 to 4, but got a ton of errors.  I downloaded every version of Xcode since 8.0 to try and incrementally upgrade it, and it quickly fell apart. Is there an update schedule for their documentation?  I hear Swift 5 is coming out, and I am sure 6 and 7 are not far behind.  I'm not sure how people are supposed to figure this stuff out if the documentation is several versions out-of-date, I guess it is easier if you have a lot of experience.

        • Re: When will AVReaderWriter example be updated?
          whoozy Level 1 Level 1 (0 points)

          Anyone know where we can get an updated version of AVreaderWriter?

          • Re: When will AVReaderWriter example be updated?
            whoozy Level 1 Level 1 (0 points)

            Does anyone at Apple read these forums?  It would be great if they could say when they plan to update their sample applications. I need to upgrade my iPhone 5s, but I want to be able to make video processing apps for my mobile phone. If I knew it was going to be updated within a year, I would be willing to wait.

            • Re: When will AVReaderWriter example be updated?
              KMT Level 9 Level 9 (14,695 points)

                   >Does anyone at Apple read these forums?

               

              See the section on 'Apple Developer Forums Personnel' via forum support, but as we're looking at 3 years since that sample was last modified, it is a safe bet it's on ice, and have to ask if you're been reading the replies in this thread so far, or just talking to yourself.

               

              Keep in mind that each sample code project is a build-able and executable source example of how to accomplish a task for a specific technology.  Sample code is typically intended to show programming techniques and illustrate use of technologies at a given point in time, but again, are only examples, lacking optimized code, etc. and it can be a mistake to hang your hat on any one of them.

               

              They show the correct sequence of calls and parameter data types to provide a generalized method for API use that developers can modify for their specific needs, and once those APIs and technologies evolve, it is common for older samples to wind up fossilized.

               

              The norm then is that when APIs change and move forward, the dev changes and moves forward as well, so be sure the device you replace your 5s with is hardware compatible, then see the latest AVFoundation/AVCam sample here: https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/avcam_building_a_camera_app