Warm tip: This article is reproduced from serverfault.com, please click

Unable to archive project with ResearchKit but successfully works on Simulator and Device

发布于 2020-11-25 11:21:11

I have an old project which uses ResearchKit to collect survey information. The project used pod (pod 'ResearchKit') and all worked fine. Now when I want to deploy this app to Testflight, Apple rejected my app saying ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. After some research, I came across some solutions suggesting to remove researchkit cocoapod and instead to use the ResearchKit project as follows https://github.com/ResearchKit/ResearchKit/issues/1346 http://blog.shazino.com/articles/dev/researchkit-setup-project/. I followed the steps exactly and was successfully able to run my app on the Simulator and also Real device. The app worked fine as before but when I tried to archive the app it gives an error saying 'ResearchKit/ResearchKit.h' file not found enter image description here

I checked many solutions but none of them worked for me

Undefined symbols for architecture arm64

The bundle at 'my_app.app/ResearchKit/ResearchKit/Info.plist' does not contain a bundle executable

Not sure if this is a bug in the library or I am doing something wrong, Request you to please help me out

Questioner
PersianBlue
Viewed
0
PersianBlue 2020-12-02 22:47:21

Fixed this using pod

pod 'ResearchKit', :git => 'https://github.com/ResearchKit/ResearchKit.git', :branch => 'master'