iPhone device: A valid provisioning profile for this executable was not found - ios

I am having an issue when trying to load my application using the application loader.
Getting error message when trying to load the .zip file using the application loader...
"The application wrapper must end in .app /var/folders//5g/...."
I did the Product/Archive, but Archive is gray out .... I am not able to load my application neither from Xcode nor application loader. I am new to iOS... I have looked my application files and I don't see any .app file. is that it? I have created an application by using storyboard... any tips?
Thanks.

When using the Application Loader you need to upload an .app file. The ipa (or .zip) file that you have is an archive that contains an directory (Payload) with the .app file that has the name for your application. That's the file you need to upload from Application Loader
For uploading it from XCode you need to archive it, or go to Organize->Archives and select submit to AppStore from there.
If you have the Archive option disabled from the Product menu you need to select iOS Device as target in the run target drop down. You probably have iPad/iPhone Simulator X.X selected now.
Hope this helps.

Related

How do I install the XCUITest runner app and ipa on a real device and get the results?

How do I install the XCUITest runner app and ipa on a real device and get the results?
I have a runner.app that was generated by building it for testing, and a deployed/signed .ipa.
Now what I would like to happen is to have it installed on a real device, execute it, and get the device log.
You can use bundleId :
let app = XCUIApplication(bundleIdentifier: "yourapp.bundle.id")
You can try to use:
xcodebuild test-without-building -xctestrun somepath/YourAppName_iphoneos14.4-arm64.xctestrun -destination 'platform=iOS, id=some_id'
I moved YourAppName_iphoneos14.4-arm64.xctestrun, YourAppName.app,
YourAppNameUITests-Runner.app to some local folder from a regular Library/Developer/etc.. build folder. Then I opened *.xctestrun file, which is an xml file, and modified paths to my local folder manually.
I couldn't find any official information about it but it seems like the *.xctestrun file is used by xcodebuild in order to find all relevant artefacts i.e both app folders. I would guess that's how they manage to run tests just with app's or ipa's without source code on various clouds...
PS. The question was about IPA, but it's convertible to the app, right? At least there is a thread - How to convert .ipa to .app file?
Edited with answer...
It is possible to achieve this. In order to build an ipa of the UI Testing app bundle you can follow these steps:
Open your project containing in Xcode.
Select the device you'd like to build the ipa for next to the scheme. This can be an actual device or a simulator.
Product > Build For > Testing
Find [your_ui_test_bundle_name].app file in Derived Data.
Derived data by default is located at ~/Library/Developer/Xcode/DerivedData/
To locate this file, dive into DerivedData for your project, navigating to Build > Products and then the respective directory based on what you chose in step 2. If you chose a simulator, look in -iphonesimulator/ or if you chose a device look in -iphoneos/. The UI test bundle .app file should be in that directory.
Create a directory named Payload case sensitive and it must be named this.
Move the .app file into the Payload directory.
Compress the Payload directory.
Rename the compressed directory to have a file extension of .ipa. You'll be prompted and select Keep .ipa.
Now you have you UI test bundle application saved as an ipa. You can also upload this ipa to a device manually in Xcode via the following process (bonus info, yay!)
Window > Devices and Simulators
Select your connected device.
Tap the + button under Installed Apps.
Navigate to and select your UI test .ipa file that you compressed previously.
It should install onto the device.
Credit where it is due: https://medium.com/ios-os-x-development/how-to-run-your-iphone-test-on-aws-device-farm-98f18086811e

Missing Required Icon File - Application Loader

When using the Application Loader application to upload a .ipa file to iTunes Connect for review I encounter an error:
However, in my Images.xcassets folder in my AppIcon Image Set there is an icon set for iPad Pro and it is a .png at 167x167.
If the image is there and it is added to the target's asset folder, why is this error showing up? What might I be missing?
Notes:
The .ipa file is being generated by Fastlane. Version 1.99.0
When I look inside the .ipa file the icon file is not there. It appears the icon file is not being added to the bundle.
I am not using Xamarin
I have tried adding CFBundleIconFiles to the Info.plist. It did not work.
I have tried cleaning the project, updating Xcode and restarting my computer. It did not work.

ipa app could not added to our itunes library, it is not a valid app

I have made an unsigned .IPA app using xcode 6 and swift language.
I have compressed the .app file and change its extention to .ipa.
When I want to install this .ipa file on my jailbreaked iPhone, this error is appeard:
"the app 'youtapp.ipa' could not be added to your iTunes library because it is not a valid app".
Would you please let me know what the problem is.
In my case I was using the "Save for Ad Hoc Deployment" option from Organizer to create an ipa file. It appears however that this is broken in XCode 6. Your answer from Jan 1 got me thinking so I did a little digging.
I renamed the exported ipa file to .zip and opened her up. XCode is now putting the .app file inside a folder named "Applications". So I went ahead and renamed this folder to "Payload", zipped it back up, and renamed the zip back to .ipa. Sure enough when I dragged this new ipa file to iTunes it works fine and can be installed on my phone.
Seems to me a bug in XCode, I think I should report it to Apple.
I had this exact same problem using Xcode 6.3 when building my iOS app. It seems that the packager does not complain when the following setting is enabled even though the target is an iOS device:
Application requires iPhone environment:NO
You need to set the this to YES and it will name the folder correctly to Payload.
I had a similar issue while trying to create an .ipa for adHoc distribution for one of the Old project (built a year ago by ex-developer). After a lot of research in google and following this link - here. By replacing the .plist file with the existing working projects (obviously - the relevant icons/bundle display name/identifier) and renaming with the current .plist name. It worked for me.
I literally spent about 3-4 hours to fix this issue. Hope it helps some one.
environment was native - iOS app.
My problem was that I forgot to put the .app file in the Payload folder. After putting the .app file in to the Payload Folder, I zip the folder and change its extension to .ipa.
It works correctly.

Trying to upload .zip file to Application Loader and I get "No .app bundles found in package"?

I am working in Swift and Xcode 6 beta 5.
I'm new to the whole process of publishing apps to the app store and I don't really understand this- what is the .app file? The file I have been working in is .xcodeproj.
I just zipped up the whole folder (with the tests and .xcodeproj file) and selected it in the Application Loader because I need to submit my binary, and I got the error "No .app bundles found in package". What do I do?
You won't be able to upload an app developed in Xcode 6 until it is officially released. And zipping is not part of the upload process.
Have a look at the Ready Today section at https://developer.apple.com/swift/
The .app is the package that contains all the resources that your app will need. When you come to publish it, you will create an archive on the Xcode Product menu, and then to validate and upload, go to Window -> Organizer and select Archives on the top bar. Here you are shown your archives and can validate to make sure it's all code signed etc, and submit them.

Phonegap 3.4: error ITM-9000 when distribute app to app store

I got an error when I was trying to upload my app to iOS app store. They show me the error like this.
Before I upload the app to store, I use command line
phonegap build ios
Then they generated new files in platforms/ios, after that, I clicked .xcodeproj file to open my project in Xcode.
I test my app on device simulator and it works fine on every iOS device. Then I archive my app to prepare it to be uploaded to app store. But during its uploading, it shows me the error ITMS-9000.
This is my config file in phonegapProject/www/config.xml
and my project in Xcode
project files structure.
any help?
Thank you.
In your product Info in Launch images section if you have "No image specified" in for some screens, please provide appropriate screens for them. Or you can use a asset catalogue to include splash screens and icons.

Resources