XCodeBuild Error building Flutter - iOS App. "Missing Target" - xcode

I have a Flutter project.
I want to build the project for iOS devices using Azure DevOps pipelines.
I have the basic configuration showed in this guide:
https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/xcode?view=azure-devops
But, I obtain this error:
xcodebuild[908:5053] unable to create build operation: Error Domain=
com.apple.xcbuild Code=1 "unknown error while handling message: missingTarget(guid: "a40ea2..........b3beb2e9f90bde3f49")"
UserInfo={NSLocalizedDescription=unknown error while handling message: missingTarget(guid: "a40ea2d289f72f0.........8b0b3beb2e9f90bde3f49")}
Any idea??
Thanks,

I think what happens, since it also appeared to me once. Do you have any connections with UIs? If yes, then check all your outlets that your UIs have in the "Show the Connectors inspector". Maybe you tried to change the name of a connection, and just erase the connection in code. If you see that your connections have this dot full:
If the dot is not fill. You have to quit that outlet.

Related

Adding an entity to a Core Data model prevent Canvas Preview to show

I have a SwiftUI application with a Core Data model. This model contains some entities, with properties. The canvas is working as expected, showing the preview.
But whenever I add a new entity, event without any property, the canvas fail to show the preview (event a basic view with only a text view in it). The error message is the following:
Cannot preview in this file - The operation couldn't be completed. Transaction failed. Process failed to launch.
I tried to clean my cache, the derived data folder, reset the simulators, etc. When I click on Diagnostics, here is the message:
Error Domain=FBProcessExit Code=4 "The process crashed." UserInfo={NSLocalizedFailureReason=The process crashed., BSErrorCodeDescription=crash, NSUnderlyingError=0x600002f29dd0 {Error Domain=signal Code=4 "SIGILL(4)" UserInfo={NSLocalizedFailureReason=SIGILL(4)}}}
RemoteHumanReadableError: The operation couldn’t be completed. Transaction failed. Process failed to launch. (process launch failed)
BSTransactionError (1):
==error-description: Process failed to launch.
==precipitating-error: Error Domain=FBProcessExit Code=4 "The process crashed." UserInfo={NSLocalizedFailureReason=The process crashed., BSErrorCodeDescription=crash, NSUnderlyingError=0x600002f29dd0 {Error Domain=signal Code=4 "SIGILL(4)" UserInfo={NSLocalizedFailureReason=SIGILL(4)}}}
==NSLocalizedFailureReason: Transaction failed. Process failed to launch. (process launch failed)
==transaction: <FBApplicationProcessLaunchTransaction: 0x60000186d960>
==error-reason: process launch failed
Any idea why I have that?
Thanks,
Axel
PS: I'm using Xcode 12 beta 6 (also tried on beta 5). I'm on macOS Big Sur (20A5364e).
Apple shared this Terminal command with me, which has helped many times by deleting the simulators running previews:
xcrun simctl --set previews delete all
The xcrun command above helped me fix this error.
xcrun simctl --set previews delete all
Finding this question / answer via a Google search was difficult as the error message the author had is different than the one XCode 12 generated for my application. Here is my error message in case it helps someone find this question faster via Google.
Error Domain=FBProcessExit Code=4 "The process crashed." UserInfo={NSLocalizedFailureReason=The process crashed., BSErrorCodeDescription=crash, NSUnderlyingError=0x600003ba0a50 {Error Domain=signal Code=4 "SIGILL(4)" UserInfo={NSLocalizedFailureReason=SIGILL(4)}}}
I fixed my issue with the following steps:
I deleted the preview canvas simulator in: ~/Library/Developer/Xcode/UserData/Previews/Simulator Devices/
I used this command line in Terminal: killall -9 com.apple.CoreSimulator.CoreSimulatorService
I restarted Xcode
The preview canvas probably had the old version of the data model.

Safari extension builded with Xcode, disappears from Safari after rebuild

I'm trying to build a Safari extension using Xcode, using this manual: https://developer.apple.com/documentation/safariservices/safari_app_extensions/building_a_safari_app_extension
The first time it builds fine and actually works, however if I want to rebuild it after changes, the extension disappears from Safari.
Here're Few parameters I'm using:
Xcode app is build on Cacoa App template
App contains a Safari Extension target
Safari Allowed Unsigned Extension is checked
Console is throwing the following errors:
plug-in <private> pre-screen sees activating state
Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named ext.demo.Extension" UserInfo={NSDebugDescription=connection to service named ext.demo.Extension}
PlugInKit error in beginUsing: with plugin identifier: <private>, killing plugin
I guess I am missing something important here...
Do a Clean Build Folder under the Product menu - or - Shift-Command-K before you run it again, and you should be good to go!

sandbox fail to access local socket

i've created a local socket in my app, and i'm getting the following error when trying to send data to target process :
deny network-outbound
i've made some research and found out that in order to fix this problem on Xcode based application, i need to to set "Allow Outgoing Network Connections" checkbox in the Summary tab of the target editor.
however, i'm using Xcode 6.3.2 and i don't see such option (summery tab is also missing).
where can i get the equivalent of this checkbox?
This is Xcode 6.4, but it was the same in 6.3.2:

Xcode - Communication Failed

When I'm trying to submit a build to AppStore I'm get "Communication Failed" error:
"An error occurred while communicating with the Member Center. Please file a bug and include a copy of your System log from Console.app:
http://bugreporter.apple.com/."
How to fix it? I'm using Xcode 6.3.2 (6D2105)
Just log in to Member Center and see: "We'll be back soon."
So I think it's temporary.

Error Message in Visual Studio

I am getting the following error message when i press on the Start Debugging button: "There were deployment errors. Continue ?"
Any idea why this error message is showing ?
Right click on the Solution you are working with > Configuration Manager > Un-check all the Deploy checks.
Something have a reference to the file it is trying to deploy? I used to sometimes get this on Windows Mobile projects when I ran it on the device or it didn't shutdown properly.

Resources