react-native run-ios --device getting codesign error - iphone

my react-native builds fine on xcode simulator and android simulator. However, whenever I try to build on my iphone, I get the following codesign error. When I build from xcode, the build succeeds without problem but nothing happens. When I build from command line, the following error occurs.
/Users/chooseongmin/Desktop/dustNotifier/ios/build/Build/Products/Debug-iphoneos/dustNotifier.app: resource fork, Finder information, or similar detritus not allowed
Command CodeSign failed with a nonzero exit code
** BUILD FAILED **
The following build commands failed:
CodeSign /Users/chooseongmin/Desktop/dustNotifier/ios/build/Build/Products/Debug-iphoneos/dustNotifier.app
(1 failure)

You need an apple developer account and a registered device there so that Xcode can create a signing certificate for you. Go to developer page create your account (if you didn't), select personal team at project general settings, connect your iphone, click on register device and run again.

Related

No account for team "null"

$ flutter ios build --release
It shows Multiple valid development certificates available (your choice will be saved):
However it doesn't show the distribution certificate selection, I use --release flag though,,,
I checked I have installed production certification correctly in local machine.
Is there any clue to solve??
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
note: Using new build systemnote: Planning buildnote: Constructing build descriptionerror: No account for team "null". Add a new account in
the Accounts preference pane or verify that your accounts have valid credentials. (in target 'Runner' from project 'Runner')error: No
profiles for 'jp.****.****' were found: Xcode couldn't find any iOS App Development provisioning profiles matching
'jp.****.****'. (in target 'Runner' from project 'Runner')
#whitebear, I am assuming you're trying to release your iOS app? Have you tried manually configuring distribution certificate in Xcode? I usually do this,
Open Runner.xcworkspace in Xcode
Configure distribution certificate in Xcode
Run flutter build ios in Android Studio project terminal
Then archive in Xcode to publish
To address the 'No Account for team null' issue.
Make sure you have the DEVELOPMENT_TEAM build setting set properly.
I think this is because when you are sign your app with a a provisioning profile associated with a development team Xcode expects your DEVELOPMENT_TEAM building setting to match.
I typically let XCode Automatically Manage Signing when I'm building/running my app in development and thought that doing so would automatically set the DEVELOPMENT_TEAM build setting, but that doesn't seem to be the case.

Can't run app from Xcode on iPhone

I have app which is running fine on iPhone 7Plus simulator but fails when I try it on real iPhone 7Plus device. Error I get is
Debug-iphoneos/MyTDM.app/Frameworks/libswiftCore.dylib'
/Users/username/Library/Developer/Xcode/DerivedData/MyTDM-gokgkswhipemjzaepsulniokxpvp/Build/Products/Debug-iphoneos/MyTDM.app/Frameworks/libswiftCore.dylib: unknown error -1=ffffffffffffffff
error: Task failed with exit 1 signal 0 {
/usr/bin/codesign '--force' '--sign' 'C90533B5B5B3E397F0328467315FAC758CD1EEA3' '--verbose' '/Users/daliborondra/Library/Developer/Xcode/DerivedData/MyTDM-gokgkswhipemjzaepsulniokxpvp/Build/Products/Debug-iphoneos/MyTDM.app/Frameworks/libswiftCore.dylib'
}
Note that my Provisioning Profile seems to look good and I was able to run apps on device in the past without any issue.
After three hours of frustration I deleted all iOS Developer certificates and started to build app signing from the scratch. Also XCode access to Keeychain to be allowed for all actions = it's important to press such button in the dialog - not only "allow access" but "always allow access".

Error launching remote program

I am new to iPhone application. i just started with xcode. My problem is: I have created an app using xcode & phonegap, it's running without any problem in simulator but when i try to test it on my iPad it throws an error.
Error launching remote program: failed to get the task for process 6074.
i dont know why this happens. i have searched it on StackOverflow but its kind of confusing (as i am new in iPhone app.)
please help me where i goes wrong & how can i solve this?
Application also open. After the application launched completely, after few seconds I got this error. after that My Application get crashed.
One more thing.
if i delete my old application then it reinstall it but it throws same error. but if i open that installed application then it will be my updated application.
The problem is because you are trying to debug your application using distribution provisioning profile. If you want to run your application in debug mode, you have to sign it with development provisioning profile and certificate (both in build settings and in target). If you are trying to create a distributable, sign it with distribution credentials and add Entitlements.plist (again both in build settings and target).
That’s because you put the get-task-allow = NO entitlement into ad-hoc builds, to stop your beta testers from being able to run the app in a debugger.
"Error launching remote program: failed to get the task for process"

Error launching remote program: failed to get the task for process on xcode 4.2

I'm having some problems debugging apps directly on my iphone. I'm using xcode 4.2 and a jailbroken ios 5.0.1 device and when trying to launch the app on my iphone from excode I get the following message: "Error launching remote program: failed to get the task for process (some number here)" But if I now try to use the app directly on the iphone it works perfectly.
Does anyone know how to fix it? thank you.
For xcode 4:
you have to create Entitlements.plist file from menu->File->New->New File->Code Signing->Entitlemens. it is going to be create Entitlements.Plist in your application folder
and Targets->build Settings->Code Signing Entitlements, you have click here two time and write "Entitlements.plist"
I did this and xcode don not get anymore error

Took over iPhone development on an app from another developer and getting code signing error

I am able to get the software to build and run in the simulator and when I set it to device I get a code signing error as it has the previous developers code signature. How do I get it to use my provisioning profile.
Project > Edit Project Settings > Code Signing Identity