약 12 개월 전에 작성한 Objective-C 앱이 있으며 iOS 배포 대상은 12.1로 설정되어 있습니다. ResearchKit 프레임 워크를 여기에 추가했고 개발 기간 동안 앱이 제대로 작동했습니다. 내가 기억하는 것은 시뮬레이터가 아닌 실제 장치에서만 작동한다는 것입니다.
1 년 후 나는 Xcode 11을 사용하여 변경을 수행하기 위해 돌아 왔고 이제 익숙한 오류가 발생하여 해결할 수 없습니다. 이것은 실제 장치와 시뮬레이터 모두에 있습니다.
라이브러리를 추가하는 데 필요한 모든 작업을 수행했습니다. 아래 첨부 된 이미지를 참조하십시오.
TARGETS-> General 탭
목표-> 빌드 단계
오류
iOS 12 장치에서 실행하려는 시도도 실패합니다. 내가 놓친 것이 있습니까?
I ended up removing the pre-build Research.framework
and adding the full Project instead:
ResearchKit.framework
file, select Move to Trash
when prompted.ResearchKit.xcodeproj
project file, into destination project. After this make sure the ResearchKit project has its files under it.ResearchKit.framework
is listed under Embed Frameworks
. If not, then add it by selecting the +
button and selecting it from the list. If it is not on that list then build the ResearchKit project to create the .framework
file.ResearchKit.Framework
is added under Link Binary with Libraries
, and also under Embed Frameworks
. If not then add it where absent.There may be better ways to resolve the issue, but for now this works for me to run the App. App now runs on simulator. However, an initial build takes up-to a minute because the ResearchKit project it pretty big.
Update: I later figured out that the reason why I was encountering the 'Image not found' error is that I was trying to run on simulator while the ResearchKit framework had been build to target arm64 (real device). You will have the same issue the other way around (attempting to run on device-arm64 while app was build for simulator).
그렇다면 위의 단계는 이것을 어떻게 해결합니까? ResearchKit 프로젝트 파일이 포함되어 있으면 장치 또는 시뮬레이터에 관계없이 현재 선택된 아키텍처에 대한 모든 것을 빌드 할 수 있기 때문에 문제가 해결됩니다. 즐거운 코딩입니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다