How to update a framework in an iOS app?

后端 未结 3 1201
名媛妹妹
名媛妹妹 2021-01-08 00:55

I\'m writing an app using Nuance\'s SpeechKit framework. I\'ve just downloaded a newer version of the framework that contains new methods in some of the classe

相关标签:
3条回答
  • 2021-01-08 01:18

    I found what cause this issue for us.

    When you build a new version you must update "Current Library Version". There is also a "Compatibility Version"

    In Xcode selector your framework target and in build settings search for linking and you will se this setting there.

    We created a build script to bump this version number every time we build.

    Xcode caches the frameworks and uses the cache if possible. That's why you need to change this number.

    0 讨论(0)
  • 2021-01-08 01:19

    If you are using CocoaPods, run pod update [PODNAME].

    0 讨论(0)
  • 2021-01-08 01:25

    You need to delete Derived Data for the project - it is an option of the project in the XCode Organizer, on the projects tab. It will remove the cached build of the framework, forcing XCode to use the new one.

    1. Choose Window/Organizer from the top menu
    2. Click "Projects" pseudo-tab-thing, along the top of organizer window (icon looks like an XCode project file"
    3. Select the project from the list on the left
    4. Click "Delete" next to "Derived Data" in the area immediately below the project info header.
    0 讨论(0)
提交回复
热议问题