Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode archive error with RestKit framework

I'm just getting started with Objective C and RestKit.

I created an application and added the RestKit project. I use RestKit to load en map JSON data from my webserver.

The application runs fine in the simulator and on my iPhone device. Now I want to create a TestFlight beta. I have setup a distribution certificate and added it to my phone and Code Signing settings.

Now I want to generate the IPA. I use the Archive option under the Project menu item. When I click's this button occurs the following error:

Ld: in /Users/japak/Library/Developer/Xcode/DerivedData/AlquinApp-ahkxhlzmjpdjjbczzkyriizvchid/Build/Intermediates/ArchiveIntermediates/AlquinApp/BuildProductsPath/Release-iphoneos/libRestKit.a(RKJSONParserJSONKit.o),
mach-o string pool extends beyond end of file for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
like image 220
user1537350 Avatar asked Dec 27 '22 21:12

user1537350


1 Answers

I had this issue with a few dynamic frameworks from Cocoapods in a Swift 3/Xcode 8.2 project. A deep clean of the build folder (Product -> (hold option key) -> Clean Build Folder) fixed the issue for me.

like image 197
JAL Avatar answered Jan 11 '23 08:01

JAL