Xcode 5 Build .app without showing package contents - objective-c

I have just finished to build my app in Xcode 5 using a cocoa project.
The final result is a .app if I right click on it I can open the folder with all the files in it.
I was wondering if there is a way to build the app without the "Show Package Contents" Option if right clicked.
What is the best way to achieve this?

Related

How to link library manually?

I want to use react-native-youtube but it shows the error Native component for "RCTYouTube" does not exist, i try to find the solution it looks like i have to link the library manually if the library with native code.
But i have no idea with this link talk about Manual linking Step1 https://facebook.github.io/react-native/docs/linking-libraries-ios.html
I use type command create-react-native-app testyoutube to create my react native project, Visual Studio Code is my tool.
I'm not familiar with Xcode. I try to open my project folder testyoutube in Xcode. It will show an alert Could not open file.
If i want to follow Manual linking Step1 what step should i do ?
Here is my folder structure:
Any help would be appreciated. Thanks in advance.
To expand upon Adeel's answer:
Locate the RCTYouTube.xcodeproj at {your project root} /node_modules/react-native-youtube.
Use XCode to open your iOS project's .xcworkspace (or .xcodeproj if .xcworkspace does not exist).
Locate the 'Libraries' folder in the project navigator pane on the left hand side of the window and drag the RCTVideo.xcodeproj file inside it.
Select your project's target from the targets list pane on the inner left hand side of the window then scroll down to the 'Linked Libraries and Frameworks' section.
Click the plus symbol at the bottom of the section and use the search bar to find 'libRTCYouTube.a', select it from the results, and hit the 'Add' button.
Your library should now be linked!
You have two options to link libraries with your Xcode/Android project.
Automatic linking (run in your terminal in the root folder of your react-native project):
react-native link
Manual Setup:
It's actually very simple. Open your react native xcode project (.xcodeproject file) with Xcode.
On the left side you have the project navigator. Drag the Xcode project from react-native-youtube inside the Libraries group.
Project Navigator
Next step is to add the library to you project. Click on the left side on your xcode project in the project navigator. Go to the libraries section and add the RCTYoutube library.
After you have setup everything up, rebuild the project and you are good to go!

how to get a `.ipa` file from create-react-native-app?

I use create-react-native-app, and I wonder how I can get a .ipa file to run in my iPhone from it? I see the command npm run eject, but I do not know what to do next. And for some reason, I cannot use exp in the command line.
Is there a detail instructions to solve my problem? thanks
npm run eject will not create a IPA file for you. It will just create project files for iOS and Android which you can run on their respective IDE's. i.e Xcode and Android Studio.
Here is a good document which you can use to build iOS without ejecting it : https://docs.expo.io/versions/latest/guides/building-standalone-apps.html
If you choose to eject then, open Xcode project from the iOS folder -> change the bundle id. and follow along this https://wiki.genexus.com/commwiki/servlet/wiki?34616,HowTo%3A+Create+an+.ipa+file+from+XCode,
I xcode:
Change scheme destination to generic ios device
Go to Product - Archive
Go to Window - Organizer
Select the archive you want, click export
There you should be able to choose method and destination.

How to add an app icon to a react-native project without using any npm packages or 3rd party libraries? Is it even possible to do so?

I am trying to add an app icon to a react-native application and am not able to do so also could hardly find anything about this in the documentation or any other sources which I am able to implement successfully.
Got this one working by using react-native-icon Package but is there Something like a single command to get icons configured into the respective folders when they are created using react-native eject command.
The app icons are controlled from the native side of the project.
You can set them up from Xcode or Android Studio fairly easily.
Perhaps take a look at Xcode 9 - Add an App Store icon and Set icon for Android application
use android asset studio
drag and drop your icon and change filters if you like and then download it.
Unzip it and then replace your res icon folder with this one
indepth tut tutorial

Xcode 8 iOS 10 archiving/uploading to TestFlight takes very long

Since I updated to XCode 8, it takes a long time archiving/uploading an app to TestFlight. While preparing archive (right after I press "Upload to Appstore"and select the appropriate Apple account), it starts Codesigning all the frameworks included in the project (I am using Cocoapods).
Any help would be highly appreciated as I am managing around 10 different accounts and it wastes a lot of time.
You can use this method to create ipa file,
right click your Archive and select show in finder
Again right click on resulted file in finder and select show package content
from result open product folder --> Application folder --> and select ".app" file
Simply add this .app file under apps of iTunes software on mac
After completing adding process right click on app icon in iTunes and show in finder which will give you iPA file.

Where is the .app program? (Mac OS X and iOS)

I'm trying to find the .app file in my project folders but I can't find it. As I remember it was just to go into the build folder in the project folder and the .app file should be there but now I don't have a build folder in those app.
Thank you in advance!
In Xcode: expand Products then, right click on your app and from the menu click on Show on Finder or Reveal on Finder.
In Xcode 4, build products are stored by default in:
~/Library/Developer/Xcode/DerivedData/AppName-lotsofrandomchars/Build/Products/
If you've upgraded to Xcode 4, things have changed. Click Product/Archive to build a release version of your app, then Window/Organizer, and select the Archives pane. Select the archive you just built, then click the "share" button towards the top right.