Parse API 1.6.4 - cannot build project

后端 未结 11 2531
太阳男子
太阳男子 2020-12-14 08:36

I downloaded the new iOS Parse API (1.6.4) and tried to build my project. When I do, I get this error:

Undefined sym         


        
11条回答
  •  余生分开走
    2020-12-14 09:24

    I've had the exact same problem using the latest SDKs from Parse (1.7.4) and Facebook (4.2.0). The problem is caused by the Bolts.framework included in both Parse and Facebook SDKs. For some reason the Bolts framework in Parse is always newer than the one included in the Facebook SDK.

    After many-many attempts at installing, removing and re-installing these SDKs, using the drag and drop method and via Cocoapods, I finally managed to overcome this issue by undertaking the following steps:

    1. I removed completely any instance of the Parse, Facebook and Bolts frameworks from my project;
    2. I re-added the FBSDKCoreKit framework (and the ShareKit and LoginKit for the needs of my project) following the steps on the Facebook developer page: https://developers.facebook.com/docs/ios/getting-started/ Make sure NOT to copy the items to your project.
    3. I re-added the Parse framework to the project using the drag-and-drop method. I also added the ParseFacebookUtilsV4 framework because I needed it to create users via Facebook Login.

    4. This was the most important step that solved everything: I added the Bolts.framework provided by Parse by dragging it to the project, but making sure NOT to copy it to the project (just like with the FBSDKCoreKit framework, I deselected the "Copy items into destination group's folder." option. If you copy it to the project folder, the project won't build.

    These steps finally solved all my problems.

提交回复
热议问题