Xcode error on creating sample phonegap app - ios

I got some problem with xCode, so i completely remove it, following this post: https://discussions.apple.com/thread/4772117?start=0&tstart=0
Then, after a fresh installation of Xcode, i followed the get Started tutorial from Phonegap (http://docs.phonegap.com/en/2.5.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS), but when i run
./create ~/Documents/CordovaXY/HelloWorld org.apache.cordova.myAppName myAppName
I'm having this issue:
mv: rename /path/to/my/app/__TESTING__.xcodeproj to /path/to/my/app/myAppName.xcodeproj: No such file or directory
What is this about? Can somebody help me? I googled out there but I can't find anything usefull

Make sure the folder ~/Documents/CordovaXY/HelloWorld doesn't exist.

Related

UMModuleRegistryAdapter.h not found when running React Native app in iOS simulator

I have a simple React Native app that I've been testing on Android and now want to test on iOS. It's using React Navigation.
I ran npm run ios but I'm getting the following error:
info In file included from
/Users/rbbit/reactnative/testproj1/ios/testproj1/main.m:10:
/Users/rbbit/reactnative/testproj1/ios/testproj1/AppDelegate.h:9:9: fatal error: 'UMReactNativeAdapter/UMModuleRegistryAdapter.h' file not found
#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
info 1 error generated.
I opened XCode but I'm basically getting the same message, nothing else that would help me debug this.
I do see that there is a package called react-native-adapter (https://github.com/expo/expo/tree/master/packages/%40unimodules/react-native-adapter), however I'm hesitant to just install this since I followed the instructions on how to include react-navigation and didn't mention that, assuming this is related.
Also, that page says If you are using react-native-unimodules, this package will already be installed and configured!, and react-native-unimodules already is in my dependencies.
Any pointers on how to solve this? Thank you!
For latest RN versions (RN 0.60+) errors like this should be fixed with the auto-linking and just running a pod install.
For older versions you should try:
react-native link in the root folder of your project
Then in Xcode Product->Clean Build folder, restart JS server and attempt to rebuild.
If still not working double check the configs from here:
https://github.com/unimodules/react-native-unimodules
and the App.delegate from here:
https://gist.github.com/brentvatne/1ece8c32a3c5c9d0ac3a470460c65603
Sources:
Pod install reminder was first suggested by Sandy in the below comment
pod install didn't work for me until I added these lines to my pod file:
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
And
use_unimodules!(modules_paths: ['../node_modules'])
Then do a pod install.
Example: https://gist.github.com/sjchmiela/6c079f2173938a9a61a7c6f053c45000
I had this exact same error with everything configured correctly, everything in the other answers done and all the unimodules installation steps already done, on a project that had worked for months, building it on a new computer. It turned out the reason was because I was simply using the wrong file in xCode.
I had opened the .xcodeproj file when I should have opened and run the build from the .xcworkspace file.
Everything seemed to work as normal apart from this error, which made it look like a configuration problem rather than a simple "you opened the wrong file" problem. Hopefully if someone else makes the same mistake, this will save them a few hours of fruitless tinkering.

Xamarin.iOS- ProjectDir:No such file or directory (appName.iOS)

Getting compilation error in xamarin.iOS project-
/Users/gsps/Desktop/MyFolder/projectName/iOS/bin/iPhoneSimulator/Debug/device-builds/iphone10.3-11.3/projectName.iOS.app:
Error: ${ProjectDir}: No such file or directory (projectName.iOS)
I have Cleaned, Rebuild & Restarted machine but this didn't solved my problem. When I am going to the given location finding the same file that looks like deleted or corrupted(See screenshot). I have recently updated Xamarin & xCode to latest version.
Error screenshot below:
File/Directory screenshot below:
I am answering my question. After searching a lot I found that In iOS Bundle Signing, I have declared Additional Argument as ${ProjectDir}. When I removed It, I have compiled my project successfully.

Open source project has `No Scheme` in Xcode

I have uploaded an open source project called SuperCrack! to Github. I made it with Xcode 8.3.3. It's quite a large project with lots of pods. I asked a friend to download and build it but he complains that there is No Scheme:
He tried the solutions here but said they didn't help.
If anybody could tell me where I went wrong and fix this problem I'd be grateful.
I had the same problem when trying to run this app turns out I just had to run 'pod install'
YOUR_PROJECT_NAME.pbxproj is missing. seems like something went wrong when pushing your project to the server...

Phonegap: ./create error

I am new with Phonegap, and am using the Terminal to try and develop it with. I am trying to make it so the project is accessible in Xcode.
I'm stuck at creating the project. I type in:
./create ~/Desktop/ProjectFolderName com.myName.hello projectNameForXCodeRefferal
And I am getting the error:
-bash: ./create: No such file or directory
I managed to zone to a bin from using:
~/.cordova
I have been stuck on this for days. I am finding similar errors online, but I have referred to documentation and other StackOverflow topics without success. Is someone willing to give a hand here?
EDIT:
My entire command is this:
/Users/Evee/.cordova/lib/npm_cache/codova-ios/3.8.0/package/bin/create
~/Desktop com.myName.myProj myProj
I get this error now:
-bash: /Users/Evee/.cordova/lib/npm_cache/codova-ios/3.8.0/package/bin/create:
No such file or directory
Any advice?
Nevermind. I am unsure of how I was able to resolve it, but I "SUDO" (aka, root/superuser/elevated admin) commanded to uninstall cordova, and manually entered cordova 2.8.0 as the installation. Following this resource on Github.
https://ccoenraets.github.io/cordova-tutorial/create-cordova-project.html

Installing Phonegap on iOS

Recently I was trying to install Cordova onto my mac so I can compile for the iphone, but I ran into a problem. The option to create a Cordova project wasn't there on xcode. I looked online and saw that I needed to create the project through the terminal. I did this, but nothing was created as far as I can see.
On the terminal, after dragging the bin folder to the terminal I did: ./create /desktop/ios-program/ com.appname appname
Did I do something wrong? Thanks
here a complete guide is given to create phonegap environment in xcode
http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-xcode-for-ios.html
if it is not enough than go for this
http://www.kendoui.com/blogs/archive/11-12-27/setup_your_phonegap_development_environment_on_mac.aspx
http://docs.phonegap.com/en/2.7.0/guide_getting-started_ios_index.md.html
These instructions are pretty clear, even if the directory tree you get after extracting the zip file is not exactly the one they show.
After installing all the requirements:
1. extract the content of phonegap-2.7.0.zip wherever you want
2. go to lib/ios/bin and run the create command with the suggested parameters.
3. open the finder and go to the directory you used as first parameter
4. doubleclick the file with extension xcodeproj to open XCode and the project will be automatically created
Make sure that you are inside \phonegap-2.7.0\lib\ios\bin before entering ./create command.
Refer the Blog Tutorial

Resources