Task failed with exit 1 signal 0 { - ios

i have updated my mac OS with High sierra and updated my xcode from 9.2 beta to 9.3 now i'm trying to run my project in xcode but i'm getting this error,
error: Task failed with exit 1 signal 0 {
/usr/bin/codesign '--force' '--sign' 'D07F0514ABB5168A2686CB2404531DC9F81CBB26' '--verbose' '/Users/hamza/Library/Developer/Xcode/DerivedData/ARPortalDemo-ablkjxbynnihakhdfdihocryaejd/Build/Products/Debug-iphoneos/ARPortalDemo.app/Frameworks/libswiftARKit.dylib'
}
I have searched about the solution many of them are saying to delete the derived data.I have done that but it isn't going. How can i resolve this? Why this error comes?

Related

Can't build project - libswiftAVFoundation.dylib: errSecInternalComponent error: Task failed with exit 1 signal 0

Suddenly I can't build project.
I got this error upon building :
Products/Debug-iphoneos/MyApp.app/Frameworks/libswiftAVFoundation.dylib
/usr/bin/codesign '--force' '--sign'
'E5DD0B9344567811AABBF46F5AA802C26FAD6696' '--verbose'
'/Users/vlad/Library/Developer/Xcode/DerivedData/MyApp-aohzmfeceiyidabrejtgjtlfukvs/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/libswiftAVFoundation.dylib'
/Users/vlad/Library/Developer/Xcode/DerivedData/MyApp-aohzmfeceiyidabrejtgjtlfukvs/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/libswiftAVFoundation.dylib:
errSecInternalComponent error: Task failed with exit 1 signal 0 {
/usr/bin/codesign '--force' '--sign'
'E5DD0B9344567811AABBF46F5AA802C26FAD6696' '--verbose'
'/Users/vlad/Library/Developer/Xcode/DerivedData/MyApp-aohzmfeceiyidabrejtgjtlfukvs/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/libswiftAVFoundation.dylib'
}
I tried to re-include Swift libraries but it didn't help.
This happened after I tried to connect to Firebase but then erased it from the pod file.
Anyone can tell me where the problem is and how to solve it?
Clean (shift + cmd + k)
Delete Derived data (click file -> workplace settings -> click the arrow under derived data and delete the entire folder)
Clean again
Rebuild

Swift stdlib tool Error -> Task failed with exit 1 signal - IOS

I am trying to launch my developed app on my iphone and I am getting a build fail with the following error. I do not know how to address the problem. Please can someone advise? I can build the app on the simulator but not on the iphone.
error: Task failed with exit 1 signal 0 {
/usr/bin/codesign '--force' '--sign' 'CF34DF6AAC83D040CB9CA5907F171518DB7A331F' '--verbose' '/Users/johnDow/Library/Developer/Xcode/DerivedData/myApp-dfuggtbkfdkixtemtcsnzflclljy/Build/Products/Debug-iphoneos/myApp.app/Frameworks/libswiftCore.dylib'
}
Try to reset the derived Data
rm -rf /Users/johnDow/Library/Developer/Xcode/DerivedData/*
If that doesn't work I had to re install xcode AND restart computer to fix it

Failed to remote debugging on using command line `process connect connect://iOSIP:Port`

I'm reading the topic is LLDB and debugserver in iOS Reverse Engineering book and encountering an error in details as below.
All configuration is well.
But when I'm using the lldb of Xcode5 or Xcode6 , the command process connect connect:iOSIP:Port showed up an error as below,
(lldb) process connect connect://10.18.136.168:1234 Assertion failed:
(pointer_byte_size == m_host_arch.GetAddressByteSize()), function
GetHostInfo, file
/SourceCache/lldb/lldb-300.2.53/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp,
line 1266. Abort trap: 6
And when I'm using the lldb of Xcode8 , the command process connect connect:iOSIP:Port showed up an error as below,
(lldb) process connect connect://10.18.136.168:1234 Process 8147
stopped
* thread #1, stop reason = signal SIGSTOP
frame #0: 0x00000001987ace0c error: memory read failed for 0x1987ace00
Environment:
macOS Sierra
Xcode 8.3.2
Xcode 6.0.1
Xcode 5.0.2
iOS 8.2 jailbroken
I've tried the lldb of three versions of Xcode using the command line process connect connect://10.18.136.168:1234, all are failed.
After a little while, I've found a solution and I want to share it here.
Solution Link: http://bbs.iosre.com/t/failed-to-remote-debugging-on-using-command-line-process-connect-connect-iosip-port/8259/4
The problem is about the architecture of the device. When I thinned debugserver using armv7s architecture and it failed to attach process.
However, there is a webpage shown pointer_byte_size == m_host_arch.GetAddressByteSize() in function GetHostInfo in linking to https://reviews.llvm.org/file/data/j3cbbw4262e57hrbundw/PHID-FILE-vojdaczcpqpc5h2sl6hl/file .
So I thinned it by using arm64 to output an new debugserver, the command as shown below
lipo -thin arm64 debugserver -output debugserver
codesign -s - --entitlements ent.plist -f debugserver
Finally, it works to my iphone 5, and to debug any app are okay and smoothly.

SecKey API returned: -25304 libswiftAVFoundation.dylib: unknown error -1=ffffffffffffffff error: Task failed with exit 1 signal 0

Since 10.12 Sierra major update, I can't compile one of my iOS projects on only on device. But very weird, it's work on simulator.
I tried to remove and resetup my dev account in Xcode, hard reboot, remove and resetup all certificates in keychain, etc.
XCode 8.0. I tried also on 8.1 beta too, same.
The error :
SecKey API returned: -25304, (null)/Users/****/Library/Developer/Xcode/DerivedData/****-epkppprfmidyatftsvnxgjqsawit/Build/Products/Debug-iphoneos/****.app/Frameworks/libswiftAVFoundation.dylib: unknown error -1=ffffffffffffffff
error: Task failed with exit 1 signal 0 {
/usr/bin/codesign '--force' '--sign' 'C47B52FDE2CABFC81D33BED8937984AF8BC6DC33' '--verbose' '/Users/****/Library/Developer/Xcode/DerivedData/****-epkppprfmidyatftsvnxgjqsawit/Build/Products/Debug-iphoneos/***.app/Frameworks/libswiftAVFoundation.dylib'
I had the same issue,
Unlock your keychain by adding this line to your projects configuration (Build>Execute shell)
#unlock the keychain
security unlock-keychain -p "myPrettyPassword" $HOME/Library/Keychains/MyPrettyKeychain.keychain

Swift compiler error on Xcode 6

I have problems with Swift Compiler:
I created new project for iOs on latest Xcode 6 and tried to build - recieved 2 errors with ViewController.swift and AppDelegate.swift.
<unknown>:0: error: unable to execute command: Segmentation fault: 11
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)
<unknown>:0: error: unable to execute command: Bus error: 10
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)
I can post a full logs if if it is necessary.
What should i do? Thanks.
I have faced a similar issue while working with a swift project. I found this on Apple Support Website. It says that this type of error occurs when you tried to access an non-existent/inaccessible memory address. To solve the issue you can quit unused applications or even restart the mac which will probably help you.

Resources