framework not found after pod install

Symptom

  1. Create a new Swift project on Xcode.
  2. Close Xcode
  3. Run pod init.
  4. Edit the Podfile and add a framework.
  5. Run pod install.
  6. Restart Xcode from ***.xcodeproj
  7. Run build and then “ld: framework not found framework-name” will come up.

Solution

Restart Xcode from ***.xcworkspace, not ***.xcodeproj.

If you restart Xcode from ***.xcodeproj, it does not recognize the newly installed framework.

If you restart Xcode from ***.xcworkspace, Xcode recognizes the newly installed framework as shown below.

Right after the pod install, you can find the ***.xcworkspace file is created at the same directory of ***.xcodeproj.

投稿者: admin

Free Software Engineer

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です