ARC build failed for OS X Yosemite, Xcode 6.1

I have a project that is not ARC, uses Core Data and builds fine when on Mavericks, Xcode 6.1. However, when I try to build with Xcode 6.1 on Yosemite, I get ARC build errors in the Core Data structure. Most errors:

ARC Semantic Issue - pointer to non-const type 'id' without explicit ownership

This happens in NSEntityDescription.h, NSFetchRequest.h, NSManagedObjectModel.h, etc.

I tried:

  • Delete and re-add master data structure
  • Exiting and restarting Xcode (works for half of my weird Xcode errors ...)
  • Product launch โ†’ Cleaning in front of the building
  • Deletion of received data for the project in the organizer
  • Verifying that โ€œObjective-C Automatic Link Countingโ€ is set to โ€œNoโ€ in the build settings

Any ideas? Thanks!

+5
source share
1 answer

I was able to fix this error by resetting the Framework search paths in the build settings.

Steps:

1) Go to the build settings and find the search paths

2) In this section, double-click the search path in the Framework. I saw them for my project:

$ (inherited)

$ (project_dir)

$ (DEVELOPER_DIR) /Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks

3) Remove the third option - $ (DEVELOPER_DIR) /Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks

I had to remove and re-add the framework that worked, but otherwise that's all I need.

+2
source

Source: https://habr.com/ru/post/1205712/


All Articles