Quasar iOS build - need podfile - ios

I have a web project based on quasar framework. I am also wrapping it in mobile apps. Android app building is fine. But when I try to build the ios app using the command "quasar build -m capacitor -T ios", it asks for a POD file.
✖ Updating iOS native dependencies with "pod install" (may take several minutes): ENOENT: no such file or directory, open '/Users/me/myapp/quasar/src-capacitor/ios/App/Podfile'
How do I get or create this file?

Related

Unable to build flutter app with firebase auth in Xcode

I'm building a flutter mobile application with firebase_auth to authenticate. It's run well on android. But when i'm try to build it on ios using xcode it gives me series of erros.
I have added the GoogleService-info.plist file inside Runner folder using xcode and added the Firebase.configure() code potion in AppDeligate.swift file. But still not working for me.
Actually if you are develop your iOS app with Flutter you cant build in Xcode. You have to build with Flutter.
flutter clean
flutter build ios
Then
Xcode -> Product -> Destination -> Any iOS Device
Xcode-> Product -> Scheme -> choose scheme -> Runner
Xcode-> Product -> Archive
Or
flutter clean
flutter build ipa
then
Xcode-> Product -> Archive
Running in Xcode
First make sure to run pod install in the ios directory: cd ios; pod install
Then in Xcode, clean (Command + Shift + K) & rebuild (Command + B).
Running using flutter cli
Flutter CLI will make sure to run pod install for you. So it should work just by runnning flutter run or flutter build
Xcode errors almost never have singular answers
Add the GoogleService-info.plist file into your Xcode project by
right-clicking on any file inside the Runner folder within the file
Navigator pane (select add files to project and then add the
GoogleService-info.plist into the project). This process will make
sure that the Xcode project sees the file.
Make sure you enable the internet permission in the project.
You can install and use the pod deintegrate tool (src); with that tool you will be able to easily reset your Pod environment. A Google search can also give you others ways to reset the cocoapod environment. After which you'd want to pod install to ensure you get the latest versions of everything.
Make sure you address the pod warnings that usually appear. They might ask you to change your debug configuration to the Pods.debug reference for example.
flutter build ios will create any flutter specific files that might be missing so running this command in terminal from your project root folder is a great idea.
Another often missed opportunity is to just go into your root project and dump the (ios, macos, android, etc.) folder completely. Then use flutter create . from the project root folder to recreate the iOS folder before running flutter build then doing the normal sequence of getting Xcode ready.
In Xcode:
Open the workspace file not the Project file (we should see both
Runner and Pods in the screenshot provided and I don't see that in
yours)
Ensure that the project is signed
On the Runner project change the debug configurations to the Pods.
Add the Google info file into the iOS folder
Add the Google info file into the project workspace from within Xcode
NOTE:
I expect to see the Pods Project when you open the Runner.xcworkspace
file. If not, make sure you are opening the workspace file, close
Xcode and regenerate the pods from the iOS folder using pod install
or from the root folder run flutter build ios.

How to build a cordova project in xcode?

I want to build my cordova project so I can publish it in the app store.
when i load the project from ./src-cordova/platforms/ios/myapp.xcodeproj in xcode
And I want to build it I get the following error
error: Build input file cannot be found: '/Users/user/Projects/git/myapp/src-cordova/platforms/ios/CordovaLib/Cordova/Info.plist' (in target 'Cordova' from project 'CordovaLib')
I tried to change the project properties to legacy build and changed the built option Any iOS device (arm64) and any mac (silicon,intel) but still get the same error.
What to I have to do to build the app so that I can publish it.
The solution was to delete the cordova project and reinstall it cordova platform rm ios and then cordova platform add ios

Ionic building an IOS application

I have finished building and compiling the Android version of the application from my windows laptop.
But to run it on IOS, am I supposed to copy the application folder to a MAC computer and run "ionic run ios"?
Follow these steps.
Check whether Ionic is already installed in Mac by typing ionic -v.
If Ionic is already installed, type the following commands:
ionic platform add ios.
ionic build ios.
If Ionic is not installed yet,
First install Node.js in Mac.
Then install Cordova and Ionic by using this command:
npm install -g cordova ionic
Once done with the installation, use the above commands for adding platform and build.
Then you will able to see Xcode file in platform folder iOS.
Then you can ask iOS developer to generate ipa file for iOS build.
You should add ionic ios platform before build
ionic platform add ios
Read this link : Ionic build

How to include phonegap application in the iOS

I am creating a phonegap application in ios and i am following below mentioned link
http://docs.phonegap.com/en/1.9.0/guide_getting-started_ios_index.md.html
It is said in the link that we need to download the phone gap, which i had done already
and then click on the cordova based application, but in my app I am not getting the options
to select the same.
So can anyone suggest how it can be done?
PhoneGap installation process has been changed. You will not get any template in Xcode and we can do is creating app in terminal
List of this you need to install phoneGap are
1. node.js
2. cordova
3. phonegap
first install node.js and then phone gap/cordova
once your installation is completed open terminal and then create a cordova based application
use this for creating process
http://cordova.apache.org/docs/en/3.3.0/guide_cli_index.md.html
this for plugins
http://docs.phonegap.com/en/3.4.0/cordova_plugins_pluginapis.md.html#Plugin%20APIs
cd to your workspace
cd /Users/xxxx/Desktop
create cordova project
cordova create your-project-name
cd to your project
cd your-project-name
add ios platform
cordova platform add ios
build your project using cordova build
cordova build ios
done !!
Reference: http://blog.revivalx.com/2014/02/21/crud-operation-using-jquery-mobile-on-android-part-1/

PhoneGap CLI "cordova build ios" failed

i have created a new hello world project using the following command,
cordova create hello com.example.hello HelloWorld
the project is created successfully, then i add the ios platform by
cordova platform add ios
and to verify i have it added correctly, i type
cordova platform list
the iOS platform is shown in the list. so at this point, according to the PhoneGap tutorial, i can use the command
cordova build ios
to build the iOS version of the project. however, i encounter the following error:
Generating config.xml from defaults for platform "ios"
Preparing ios project
Compiling app on platform "ios" via command "/Users/Aldour/PhoneGap/hello/platforms/ios/cordova/build"
/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126
throw e;
^
Error: An error occurred while building the ios project.
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/cordova/src/compile.js:65:22)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
the results that i have googled are mostly concerning the android version, talking about the invalid environment path setting. i dont know if it is related since i can create and build a PhoneGap project targeting the android platform without problem.
here is my $PATH:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin/node:/usr/local/bin/npm:/Developer/SDKs/android-sdk-macosx/platform-tools:/Developer/SDKs/android-sdk-macosx/tools
EDIT:
problem solved by re-installing xcode from app store
I had the same problem in Android platform, and it was solved with the commands:
cordova platform rm android
cordova platform add android
cordova build android
in Node.Js console. try it in ios.
If you get an error with 'cordova platform add android', you may need to manually remove any android folders in your project folder hierarchy.
This resolved my issue:
cordova platform remove ios
cordova platform add ios
cordova build ios
If you run the build with --verbose, you will probably see some permission issues. By default, XCode creates a folder of the build in ~/Developer, if you haven't changed it. There probably is a permissions issue when creating that folder. Just execute the following command: sudo cordova bulid ios
That should fix your issue.

Resources