iphone: appID creation problem? - iphone

Whenever I create an app ID on my provisioning profile, the 10 digit bundle seed ID keeps getting imported in front of it... e.g. YVW2UMA3HV.com.yourcompany.ytj
..As a result, the project i'm trying to compile (which as bundleID com.yourcompany.ytj gives an error in Application Loader.
..Is there a way to create an appID without the 'YVW2UMA3HV' in front of it ?

This is expected behavior and always worked for me.
Have you, however, tried using something different than "com.yourcompany" as prefix? Because that's where the problem might be at.

The value you supply in your Xcode project for the Identifier property of the target is just the com.yourcomparny.whatever portion of the AppID.

Related

Could not locate login item in the caller's bundle error when using SMLoginItemSetEnabled

I'm trying to get my swift Mac app to launch at login using the method described in this page: https://theswiftdev.com/how-to-launch-a-macos-app-at-login/
However, I keep getting the following errors as soon as I call SMLoginItemSetEnabled:
Could not locate login item com.domain.LauncherApplication in the caller's bundle
Could not enable login item: com.domain.LauncherApplication: 3: No such process
I checked that the launcher app ID is correct multiple times, I tried changing it and changing its version number. I even tried cleaning the project and moving the base app to /Applications but I always get these error messages.
Any idea what the problem might be? (Notice the solution must not require me to disable App Sandboxing)
OK, I found the problem but it took a long time since it was so sneaky: In the Copy File Build Phase section I entered "Contents/Library/LoginItem" as the subpath instead of "Contents/Library/LoginItems" (notice the 's' in the end - can't believe I missed it). So thank you #vadian! You were absolutely right.

AdMob not displaying on copied Swift project

I have created an app in swift and it’s in the app store, displaying Google AdMobs interstitial.
Let’s call the app ‘MyApp’, and bundle identifier is ‘com.mrx.-MyApp’.
Now, I’ve made a copy of this app, it has the same name, and some minor modifications, and just changed the bundle identifier to ‘com.mrx.-MyAppTwo’. That’s it. The display name is still ‘MyApp’ (not ‘MyApp Two’) and the ‘Name’ (under ‘Identity and type’) is also still just ‘MyApp’.
No other changes in the projects settings (no renaming or anything, since the app’s name is the same).
I’ve create a new AdMobs using the app name ‘MyApp Two’ and the bundle identifier ‘com.mrx.-MyAppTwo’.
However, it will simply not display adds (it works fine with AdMob’s sample ads).
My guess is that it has something to do with the naming, but I can simply not figure it out.
Any help?
Thanks in advance.
Seems like just renaming it under 'Identity and Type' did the trick.

Invalid or missing URL scheme hackbook

I am trying to use facebook ios sdk but when I run the Hackbook example it gives me the error message "Invalid or missing URL scheme. You cannot run the app unti you set up a valid URL scheme in your .plist" Where do I make the changes for this?
Since one of the answers mentioned it, I will say that I have already modified the plist to have fb[my_app_id] in the URLSchemes.
This tutorial walks you through the process step by step, search for "Modify the app property list file".
I figured it out. There was another instance in the code where the ID needed to be replaced. What's odd is that it's not specifically called out as far as I can tell. I did a search for it.
you have to add like this
100% works and solved crash

Choosing the correct bundle ID in iTunes Connect.

I am preparing to submit an app to the App Store and have come across the following form. In the past when I have done this incorrectly it caused me a lot of grief which I would like to avoid this time around.
It is giving me a few options to choose from, but I'm not sure which one is correct. I would assume there is a way to check my Xcode project to be sure that the bundle IDs match. More specifically I would think that the form below would correspond to my bundle id name
where if my app is called AWESOMEAPP the correct bundle to choose should read EricBrotto.AWESOMEAPP or EricBrotto - *. In fact I don't have either as an option. What I do have is ericbrotto - *. That said could I just choose this one and change my Bundle identifier to ericbrotto.${PRODUCT_NAME:rfc1034identifier}?
Any clarification would be great!
I would get rid of the dollar signs, and enter explicitly com.ericbrotto.myawesomeapp into all of the provisioning portal, iTunes Connect and the Xcode Target Build settings. Or use a wildcard just for the provisioning profile.

App validation error

“ScenesAndLayers” does not contain a single–bundle application or contains multiple products. Please select another archive, or adjust your scheme to create a single–bundle application.
This is the error I am getting when I have archived my app and go to validate it. What is happening here? How do I fix this?
This is because your app probably uses static libraries that are marked with Skip Install = NO.