React Native app, does not show in iPhone setting app - ios

I am new to react native, When I run the iOS project from Xcode, it is installed successfully.
However, I am not able to see my app in the setting app of the iPhone.
Xcode Version - 11.6
iphone version - 13.7
Although I am getting following error when checked the devices in organizer.

there is an issue for that but for workaround it just add settings bundle to your ios project.
Adding the Settings Bundle
Open your workspace inner ios folder with xcode
To add a Settings bundle to your Xcode project:
Choose File > New > New File.
Under iOS, choose Resource, and then select the Settings Bundle template.
Name the file Settings.bundle.

Related

Flutter iOS Validation -A value for the key “WKApplication“, or “WKWatchKitApp“ if your project has a WatchKit App Extension target, is required

I working on a flutter app that interacts with a similar smaller version as watch app.
For Android I'm not faceing probelms. But I'm still struggling with iOS.
After I created the default flutter app and added a watch as target, I tried to test validate this. I archived my project with
flutter build ipa
and validated the created archive. For that I opened
My App > build > ios > archive > Runner.xcarchive
by double clicking on it. That opend Xcode and the 'archive manager'. Here I clicked on 'Validate'.
I also tried it by the 'Transproter' app.
Both validation ways are ending with this error:
Missing Info.plist value. A value for the key “WKApplication“, or “WKWatchKitApp“ if your project has a WatchKit App Extension target, is required in “Runner.app/Watch/XXXXX App.app“ bundle. For details, see: https://developer.apple.com/documentation/watchkit/creating_independent_watchos_apps/setting_up_a_watchos_project
I have no idea how I can fix this.
My current setup is:
Flutter 3.3.2 - channel stable
Dart 2.18.1
DevTools 2.15.0
Android Studio Dolphin | 2021.3.1
Xcode Version 14.0
What I also tried is: I created a new project with a normal iOS App (not flutter) and added a watch as target. This validated without any problems.
I'm facing the same issue when I want to archive and release a test version of my flutter project with a watch app in Xcode 14. I can run the whole project locally without any problem. I have no idea how to deal with it so far.
I tried to add the WKWatchKitApp key to the info.plist of the WatchKit App, but I got more errors saying that I'm missing the WatchKit App Extension' target. I'm confused about it since the Xcode 14 Release Notes said:
Xcode 14 includes a default template for watchOS apps that combines the WatchKit App and WatchKit App Extension targets into a single Watch App target, simplifying code, asset, and localization management. You can deploy single-target watchOS apps to watchOS 7 and later. (83222217)
I'm developing with:
Flutter 3.3.0
Dart 2.18.0
DevTools 2.15.0
Xcode 14.0
I'm wondering if it is caused by Xcode or the old version of Flutter.
Update: 20230211
I tried to upgrade my Flutter to 3.7.3, delete the build cache by running flutter clean, and clean the Xcode build folder. Then update and reinstall all the flutter and pod dependencies I'm using and recompile the whole project. The project can now archive and release to Testflight.

How to get an iOS app build for appium testing?

I wanted to setup iOS testing on simulator on my MacBook-pro. Im using appium 1.6 and Xcode 8 and iOS 10.1 as simulator OS. I ran my appium server and set the desired capabilities and used an .ipa from the app store and it crashes on launch while doing an inspect on appium. Is it happening because i don't have a app signed for development? what are the requirements for the app to be tested for using? Do i need signed apps to be used for testing on simulator too ?
You can create a .app file useing the belowing instruction:
1- Go to:
xcode > File > New Project > (select ios at top bar) select Tabbed Application > click Next > give project name and select swift as language and complete process.
2- Open the project and run it. After running the app in the simulator, you will find the project .app file in the product folder (expand your project in xcode > product.
you can use this .app file for your appium test.
3- You can also get a lot of free .xcode project on the web. download this project, open the .xcodeproj or .xcworkspace file in xcode and run it. you will find the .app file in the product folder
if you want to run your ios app in the simulator, you need a .app file, not .ipa file. The .ipa file runs on the device. Try to generate a .app file for simulator.
Yes, you need apps to be signed with a developer provisiioning profile. You can use the iresign to do it. you should input your ipa file developer provisioning file(contact your dev) and click resign. It will output the resigned app
The same dev provisioning file, dev certificate should be installed in your mac from where you run your scripts.
Note: you cannot run .ipa on simulators. you need .app version of the app , for which you need to contact the developer too

ApplicationVerificationFailed from Nativescript CLI

I am using the latest version (2.0) of the Nativescript CLI. I recently updated by iPad to iOS 9.3 from iOS 7. Prior to this upgrade, I was able to run Nativescript apps on my device using "tns run ios". Since the upgrade, I get the following error:
Error: ApplicationVerificationFailed
ErrorDescription: The bundle being installed with bundle ID org.nativescript.bluetoothdemo2 is authorized by a free provisioning profile, but apps validated by those are not allowed to be installed from this source.
I have attempted to change the bundle ID (hence the 2) and generate new provisioning profiles to no avail. I have opened the project in xCode and the "Fix It" button is not available. The project does run in xCode.
This is how I solved the same problem.
1) Opened up XCode project that Nativescript generated, tried to run it, but it failed with message that apphas to be verified on the phone itself.
2) Opened up phone General settings > Profiles and Devices Management > Developer App.
3) Verified the app.
4) Built and run app via "tns run ios --device 1" normally without any problems.
Hope it helps :)
I would recommend you try the following:
1) Remove the platform/ios by running tns platform remove ios
2) Make sure your package.json contains the correct bundleID (this will be passed to your xcode project when you build).
3) Make sure you use the same BundleID from your Apple dev-certificates.
4) Add the platform/ios by running tns platform add ios
5) Prepare & Build: tns prepare ios & tns build ios
6) Go to your .../platforms/ios folder and open the .xcodeproj or .xcworkspace
7) Go to "General" tab of you main app target and under "Identity" group make sure you have the correct BundleID and the correct Team (your Apple dev account).
8) Go to Build Settings tab and under Code Signing group the Code Signing Identity key is set to iOS Developer (your dev Certificate), and that the Provisioning Profile is set to Automatic (when publishing it will automatically choose the correct profile).
Now you can just close XCode and run the app via CLI.

IOS Deployment with Ionic

Is it possible to deploy an ionic app to your ios device without publishing it on the app store? I do have a Mac and a developers license, the app I want to use is for private use (for about 5 users).
Yes, indeed you can.
You first have to build your project for ios:
ionic build ios
Then you have to open up (with Xcode) the .xproj project that was generated by ionic build ios command (you'll see the exact location in the command's output).
Now you have to connect your iPhone to you Mac computer and you'll be able to choose your iPhone as a "deployment" device.
Click run in Xcode and after the Xcode finishes guiding you through creating a provisioning profile you'll have the app on your phone.
For more info take a look at https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/LaunchingYourApponDevices/LaunchingYourApponDevices.html
Of course, you just need Xcode to generate the ipa so you can install it anywhere.
Check this guide: http://cordova.apache.org/docs/en/latest/guide/platforms/ios/index.html As ionic is essentially cordova the steps are similar.
Steps to upload ipa to App Store and Device (ionic App)
Step 1
1. Import Project to Mac Laptop
2. Create a new Project in Mac via terminal and import all SRC Folder from old project to new Project.
3. Open the New Project.
4. Copy the Dependency from old Projects from Dependencies and paste in New Project in Dependencies
5. Don’t remove old Dependency of new Project just install new one
6. Fire command Npm install once dependency and Src Folder is copied to new Project
7. Go to config.xml change widget id, version, Description, author email, href.
8. Change Version in package-lock.json
9. Npm install
10. Don’t Forget to Save All Files.
Step 2
1. Ionic serve -l
If you have installed Native Plugins (I.e. camera, network, base 64 etc.), Reinstall that All Native Plugins.
2. Verify that app is running in browser
3. Ionic cordova build ios
Step 3
1. Go to developer.apple.com
2. Click on Identifier-> App Id.
3. Register App Id Name and Bundle Id
4. Click on Continue and Register
5. Go to Provisional Profile
6. Click + Sign
7. Click on Development
8. Select Ios App Development
9. Select IPhone Listed
10. Generate Profile Name by Giving Name
11. Continue and Profile will be Ready
12. Click on Done.
Step 4
1. Go to Project-> ios-> projectName.xcodeproj
2. Xcode will be opened when you open file projectName.xcodeproj
3. Click on Project and Automatic Signing
4. Select your Device and Click on Run Button
5. Change Bundle Name and Bundle Identifier Name in INFO
6. File -> Project Setting ->Shared Project Setting -> Build Setting ->Select Legacy Build System instead of Default (Verify Once)
7. Click on Run Button Your App will be Deployed in iPhone

Netbeans 7.4 with PhoneGap and iOs

I created a new PhoneGap project with Netbeans 7.4
and I tried to run the ios simulator
in iOS simulator has created an icon. clicking it opens for a few seconds, the splash of the application and then closes
the console of the mac I can see this log
backboardd[30110]: The 'com.coolappz.barno' bundle at (null) does not have an executable path. Please check the bundle's Info.plist file.
i try to:
- new project
- Reset Content and Settings ios Simulator
i use phonegap-2.9.0 SDK
for now i haven't Provisioning Profile
NetBeans 7.4 does not support phonegap. It supports cordova 3.0+

Resources