Ionic "Seems to be a very old project file format - please open your project file in a more recent version of Xcode" - ionic-appflow

fastlane finished with errors relating to automatic_code_signing. I’m not sure what this means and how to fix it, but it’s an error I hadn’t gotten before. I’m on Ionic v3

This has to do with the iOS platform not being up to date.
iOS builds including cordova-ios v4.5.5 or earlier will fail with this error in Appflow. This issue was corrected in cordova-ios v5.0.0. Updating to a current cordova-ios release will resolve the problem.
To remove and reinstall the iOS platform:
ionic cordova platform rm ios
ionic cordova platform add ios#5.1.1 //the latest release of the current major version is recommended.
This
example specifies the latest version at the time of writing
Source here

Related

Unable to find command: platform add ios

I have a old ionic project that run in version 1.3.3. And I updated to new version 5.4.16. But, when I try build the project using "ionic platform add ios"
Its doesn't work and I receive this message:
Unable to find command: platform add ios
I look for this in doc, but nothing done.
Is there anything I can do or some other command that replaces ionic platform add ios in newer versions?
It's: ionic cordova platform add ios
https://ionicframework.com/docs/cli/commands/cordova-platform

Building old version of React-Native app with Xcode 11

I just started working on an already existing React-Native app that needs a really small update, but that has not been updated since October 2019.
The first thing I need, in order to start updating it, is to build the app. That is where I cannot find a way to do it.
At the moment, I’m trying to build the app only on iOS and not on Android.
First of all the current toolset versions I’m using are:
React-Native version: 0.53.3
Xcode version: 11.4.1
iOS SDK: 13.4
Node version: 8.16.6
NPM version: 6.14.1
I initially had problem with third-party tools, but I managed to fix it through manually installing them in the node-modules/react-native folder.
Now I’m getting errors about Xcode not finding headers of the modules the app is using
like, for example,
React/RCTViewManager.h file not found
Or, similarly, the GoogleSignIn.h headers in the RNGoogleSignIn module
I believe it’s just an error of how libraries are imported in Xcode, because as a test I have created a new react-native “test app” with the same exact versions of react-native and node, then I installed the core dependencies needed to perform the update on the original app, and I managed to build it without problems.
I’ve also tested building the app on an old Mac with macOS 10.14, using Xcode 9, but I’ve got different errors, always related to importing headers of modules.
This is the toolkits versions of the “old Mac”:
React-Native version: 0.53.3
Xcode version: 9.4.1
iOS SDK: 11.3
Node version: 8.16.6
NPM version: 6.14.1
Searching online I know that some of the problems I have faced (like the third-party react-native manual install) have been fixed in react-native updates, but I’m not expert enough with the technology to be sure that I can handle the update process without introducing bugs. I would prefer to just make this version run for now and facing the updating process later.
Do you have any suggestion of things about what I can do in order to successfully build the app?

If anyone ever comes here with a similar problem: the solution was pretty simple.
Be sure you're using the .xcworkspace file in your iOS folder, and not the .xcodeproj. This is used to automatically (and correctly) load the Pods dependencies in Xcode without having to manually link them.
Be sure that you installed the dependencies correctly with the right version of Cocoapods. We had to use an old version (1.5.x) that would automatically downloaded some pod dependencies. Our error was due to Facebook SDK. Newer versions of cocoapods did not download it, while the 1.5.x version would download it.

Cordova ios -Your ios platform does not have Api.js in old project

When we run cordova plugin add cordova-plugin-inappbrowser
command ,I have got error "Your ios platform does not have Api.js". Because I have a old project in ios cordova.
Is the any way to add plugin manually.
You should update the cordova-ios version of your project or downgrade the Cordova CLI to use an older version that included the cordova-ios version you have in the project.
You can also try to install the plugins with --nofetch param at the end.

Urban Airship integration with Cordova iOS throwing

I've got an AngularJS web app wrapped into Cordova (iOS platform). Having added the Urban Airship plugin (urbanairship-cordova), I receive the following error when running:
$ npm-exec cordova run ios --device
ERROR running one or more of the platforms: Error: Cannot find module '../ConfigParser/ConfigParser'
You may not have the required environment or OS to run this project
The version requirements for the UA plugin are Cordova 5.0.0+ and Cordova iOS 3.8.0+. I'm running Cordova 5.4.0 (latest at time of writing), any previous 5.x.x versions produce a separate issue in the Angular app with some image assets not appearing.
But the above ConfigParser error only appears in 5.4.0.
If I revert the UA plugin installation, the error goes away. And I get the same error when trying to emulate with iOS simulator.
I've contacted Urban Airship (Twitter) as the Github repo has issues turned off, though their support page (http://goo.gl/ZGrbbi) says I should log issues there.
Any ideas on how to resolve?
There appears to be an incompatibility with the latest version of Cordova and the UA plugin.
For now you can roll back your global version of Cordova to version 5.3.3 with npm;
npm install -g cordova#5.3.3
It'd be worth contacting Urban Airship to explain your problem via email at support#urbanairship.com as advised on the GitHub repo https://github.com/urbanairship/phonegap-ua-push
Looks like the config parser script moved in 5.4.0. Will be fixed in the next release.
Update: We just released 4.0.0 version of the UA plugin. Should be compatible with the latest cordova versions.

Deployement Error for iOS in VS Cordova

VS version - 2015 with Cordova update 3Mac OS - 10.10.4iOS - 9.0 When building in release mode for iOS we get following warnings. But release folder is created with ipa and plist.
So when uploading that ipa using application loader it gives following 2 errors.
As I mentioned in this stackoverflow thread:
There appears to be an issue with Cordova's iOS implementation when publishing apps created specifically using Xcode 7.
A Cordova community member has published a "cordova-plugin-ipad-multitasking" plugin with a fix.
http://npmjs.com/package/cordova-plugin-ipad-multitasking
Install this plugin and you should be all set. A future Cordova version will resolve the problem fully.
Failing that, if you are using remotebuild you can also find the native project under ~/.taco_home/remote-builds/taco-remote/builds and make the modifications as described in the Cordova bug on the issue.
EDIT:
To resolve ITMS-90339, there is a second step you can do to patch in the near term. Grab the build.xcconfig from the 3.9.x branch of the cordova-ios repo and place this under res/native/ios/cordova
Now remove this line:
CODE_SIGN_RESOURCE_RULES_PATH = $(SDKROOT)/ResourceRules.plist
Note that you will want to remove this custom build.xcconfig file if you upgrade to the version with the full patch that is forthcoming.

Resources