[Error] Type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [Warning] Incompatible pointer to integer conversion passing 'void *' to parameter of type 'int' ---- BOOL __swizzled_didReceiveRemoteNotification(idself, SEL_cmd, UIApplication* application, NSDictionary* userInfo,void (^UIBackgroundFetchResult)(void) ) { NSLog(@"swizzled didReceiveRemoteNotification");
오늘 저는 다음 정보와 함께"Command CodeSign failed with a nonzero exit code"오류를 받았습니다 .
ID 서명: "내 ID" /usr/bin/codesign --force --sign xxxxxxxx --timestamp=none /path/to/derived/data... xxxxxxxx: ID를 찾을 수 없음 0이 아닌 종료 코드로 인해 명령 CodeSign이 실패함
이 오류가 발생하는 데는 몇 가지 이유가 있을 수 있습니다.방금 나에게 일어난 일을 공유하겠습니다.
#문제의 원인
키체인 액세스앱 에서 키체인을 망칠 때 이 문제가 발생합니다.새 인증서를 만들고 이전 인증서를 삭제하려고 했습니다.그리고 Xcode가 삭제된 것을 사용하려고 시도한 것 같습니다.
#해결책
내 솔루션은 Xcode 문제가 발생했을 때 항상 수행하는 작업인 Clean Build Folder입니다.
앱을 다시 열면 키체인에 액세스하라는 대화 상자가 표시될 수 있습니다.액세스 권한을 부여하면 문제가 해결됩니다.
----
Today I got the"Command CodeSign failed with a nonzero exit code"error with the following information.
Signing Identity: "My identity" /usr/bin/codesign --force --sign xxxxxxxx --timestamp=none /path/to/derived/data... xxxxxxxx: no identity found Command CodeSign failed with a nonzero exit code
There might be several reasons that cause this error. I will share one that just happened to me.
#Cause of the problem
I got this problem when I mess up with keychains in theKeychain Accessapp. I created a new certificate and tried to delete an old one. And I think Xcode was attempting to use the deleted one.
#Solution
My solution is what we always do when we got an Xcode problem, Clean Build Folder.
pod install output:
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core":
In Podfile:
Firebase/Auth (= 10.6.0) was resolved to 10.6.0, which depends on
FirebaseAuth (~> 10.6.0) was resolved to 10.6.0, which depends on
GTMSessionFetcher/Core (< 4.0, >= 2.1)
GoogleSignIn (= 6.0.2) was resolved to 6.0.2, which depends on
GTMAppAuth (~> 1.0) was resolved to 1.3.1, which depends on
GTMSessionFetcher/Core (< 3.0, >= 1.5)
GoogleSignIn (= 6.0.2) was resolved to 6.0.2, which depends on
GTMSessionFetcher/Core (~> 1.1)
Firebase 10.6.0이 업데이트 돼서 다시 한 번 iOS 빌드를 시도해 봤는데 여전히 에러가 난다.
UnayOzan commented on Feb 5
Fixed this error with changing the version in "GoogleSignIn.podspec.json" file.
Firebase/Auth (= 10.4.0) was resolved to 10.4.0, which depends on
FirebaseAuth (~> 10.4.0) was resolved to 10.4.0, which depends on
GTMSessionFetcher/Core (< 4.0, >= 2.1)
GoogleSignIn (~> **5.0.2**) was resolved to **5.0.2**, which depends on
GTMSessionFetcher/Core (~> **1.1**)
I found the file in {user}.cocoapods/repos/cocoapods/Specs and then just search for "GoogleSignIn.podspec.json".
Find the folder with the same version with the error, in my case 5.0.2.
And then change its dependencies with the version 7.0.0 or something that works with the other packages.
In my project the solution was this;
"dependencies": {
"AppAuth": [
"~> 1.5"
],
"GTMAppAuth": [
">= 1.3",
"< 3.0"
],
"GTMSessionFetcher/Core": [
">= 1.1",
"< 4.0"
]
After that I exited Xcode, deintagrated pods, cleaned cache and installed it again.
Everything works fine now.