Unable to deploy an Ionic Framework app on ios device - ios

I'm developing an ionic framework app with Ionic 2. I can deploy via my MAC to an android device using 'ionic cordova run android'. But when I execute 'ionic cordova run ios' I get the following error:
Code Signing Error: Signing for "App" requires a development team. Select a development team in the project editor.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.1'
All of the online answers for this issue only mention signing provisions in xCode but I'm not sure how that would resolve an Ionic app created in Visual Code. I didn't do any development in xCode and it's only installed in order to use the emulator. The solutions say to open the app in xcode for the signing but you can't even open an Ionic app in xCode.
Could someone please help with this, I've had this issue for weeks with ios.

Open the .xcodeproj in xcode, go to the project settings, and under signing, use the team dropdown menu to select a dev team and remove the error. This error is occurring because to emulate an ios app, it has to be built using xcode.

Related

Migrating Ionic project written in Windows to MacOS

I have an Ionic project. I wrote and compiled it for Android on Windows. My project is running on Android. But I don't know how to compile the project on Mac. I installed XCode. I copied
../platform/ios
folder to Mac.
I open the project. I get the error:
"Couldn't load project" "The file couldn't be opened".
How can I open the project in Xcode? Thanks.
You need to copy whole project on Mac. Then add iOS platform to it, and then you can open it in Xcode.
This guide covers how to run and debug Ionic apps on iOS simulators and devices using Capacitor or Cordova. iOS apps can only be developed on macOS with Xcode installed.
Setting up a Development Team
All iOS apps must be code signed, even for development. Luckily, Xcode
makes this easy with automatic code signing. The only prerequisite is
an Apple ID.
Open Xcode and navigate to Xcode » Preferences » Accounts. Add an
Apple ID if none are listed. Once logged in, a Personal Team will
appear in the team list of the Apple ID.
Cordova Setup
The ios-sim and ios-deploy are utilities that deploy apps to
the iOS simulator and iOS devices during development. They can be
installed globally with npm. This section is not necessary for Capacitor.
$ npm install -g ios-sim
$ brew install ios-deploy

iOS - Xcode Automatically Manage Signing Not Work With Ionic 4 Cordova Project

I have created a iOS app using ionic 4 with cordova and I have used following command to build iOS platform.
ionic cordova platform add ios#4.5.1
ionic cordova build ios --prod --release
After that I have open the xcodeworkspace file using Xcode and tested using simulator as well.
But when I trying to upload it to App Store I can't do it because this automatically manage signing doesn't work.
Here is the error Xcode shows.
Xcode Version : 12.1
I have try following solutions but didn't work them.
Deleting provisioning profiles in ~/Library/MobileDevice/
Restart the Xcode
Adding and removing push notification capabilities as described here iOS - automatic signing is unable to resolve
All the solutions in here as well Xcode - error
The file path is APP > Platforms > ios > Cordova > build-release.xconfig
And in the file, iPhone Distribution is explicitly set for CODE_SIGN_IDENTITY.
Change:
CODE_SIGN_IDENTITY = iPhone Distribution
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution
To:
CODE_SIGN_IDENTITY = iPhone Developer
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer
After all these solution it shows above error.
EDIT
I have a doubt with this signing certificate also. Is this normal with individual developer program ?
EDIT 2
Here I have noticed identifiers are automatically created using Xcode. But there is no certificates or profiles. Why is that?
EDIT 3
Manual signing works
After suggestion by
#MostafaHarb
I have add certificates and profiles manually add install them. After that only it allows me to use manual signing.

Xcode couldn't find any iOS App Development provisioning profiles matching "App Name"

I am trying to build flutter with one of XCode's simulators but it is giving me this error in the general tab of Runner Xcode
couldn't find any iOS App Development provisioning profiles matching
"App Name"
also the build fails with this error:
ld: library not found for -lFMDB
is it possible to run ios without enrolling to apple developer plans(also is it possible to build IPAs this way?)
Running a Flutter app on an iOS simulator doesn't require an Apple Developer account, unless you need to have some Capabilities enabled in the iOS app for example. If you're using Android Studio, you can run the Flutter app on an iOS simulator easily after it has been set up.

Ionic V1 Xcode IOS run error Blank page at launch / Cordova, Ionic run ios : Build Failed

I have a problem for my IOS running Ionic V1 project.
I use last version of Xcode : V8.3.3
My Ionic CLI is V2.0.0
My Ionic Project is V1.0
My Device Iphone 6 IOS 10.3.2
My app is running fine on browser, and is running fine on emulator ios. Also my app is running fine on android device. Problem comes when I run on IOS device.
Through Xcode, I had many erros with provisionning profiles but now I don't have anymore and I use the Iphone Developer for signing certificate. I have no warning. But when I lanch "Run" command on device through Xcode, the app installs without any warnings and launch a blank screen with no error or output on the output console log of xcode.
So Xcode running devices gives me a blank app screen with no error.
Through "Ionic Run IOS" or "Ionic Run Ios --device" or "Ionic run ios -l -s --device" I have an error 65 Xcode : build failed with this error :
Check dependencies
signing for "MyApp" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'IOS 10.3'.
I have been looking on the web for days without any issue.
Please would someone help me to make this app working as I can publish it then with no blank screen..
Regards

How to build and deploy an ios api file in real device using MAC

i am new to mac, so for i have installed xcode and successfully added the platform for ios.
When i give adb devices i am not able to detect my device name for iphone but when i connect android and give adb devices i am getting my device .
when i give ionic build ios i'm getting the following errors. i don't know how to enable the developer option in iphone
=== BUILD TARGET myFirst OF PROJECT myFirst WITH CONFIGURATION Debug ===
Check dependencies
Signing for "myFirst" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/subbarao/Desktop/myFirst/platforms/ios/cordova/build-debug.xcconfig,-workspace,myFirst.xcworkspace,-scheme,myFirst,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,myFirst.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/subbarao/Desktop/myFirst/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/subbarao/Desktop/myFirst/platforms/ios/build/sharedpch
You need a development provisioning profile on your build machine. Apps can run on the simulator without a profile, but they are required to run on an actual device.
If you open the project in Xcode, it may automatically set up provisioning for you. Otherwise you will have to create go to the iOS Dev Center and create a profile.
cordova run with ios error .. Error code 65 for command: xcodebuild with args:
Same question here by this guy
Try to sign in as ios dev account in Xcode
or try
ionic platform remove ios
ionic platform add ios
i was getting the same error but i tried the above command and its working now
thanks

Resources