Comments (21)
@ruslo @Casz A simpler solution would be to change the set(MACOSX_BUNDLE_GUI_IDENTIFIER com.example.polly)
in every ios*.cmake
file, and the update the docs. I will gladly provide a pull request for this. Eventually refactoring to extract the # fix try_compile
part.
from polly.
For simplicity sake, I just tried a bare minimum CMake project
cmake_minimum_required(VERSION 3.8)
project(foo)
and get the same error.
from polly.
and get the same error
Nothing I can recommend here except fixes from documentation:
- http://polly.readthedocs.io/en/latest/toolchains/ios/errors/signing-request-development-team.html
- http://polly.readthedocs.io/en/latest/toolchains/ios/errors/polly_ios_development_team.html
If you'll find the fix feel free to add it to docs.
from polly.
I'm working on a fix. You need to set the MACOSX_BUNDLE_GUI_IDENTIFIER
to something different. For me setting it to com.<company-name>.example
worked.
@ruslo What I'm considering a is fix of the try-compile introducing a POLLY_XCODE_BUNDLE_IDENTIFIER
variable that can be set from an environment variable. Does this sound like a reasonable solution?
from polly.
@joeced Are you sure that while doing these steps your team-id is the same as you used in POLLY_IOS_DEVELOPMENT_TEAM
?
from polly.
@ruslo Yes most definitely. The problem is that we are not allowed to use com.example
as bundle identifier, it will fail with the error:
No profiles for ´com.example´ were found: Xcode couldn't find a
provisioning profile matching ´com.example´.
Code signing is required for product type ´Application´ in SDK ´iOS 10.3´
If I
set(MACOSX_BUNDLE_GUI_IDENTIFIER com.<my company name>.example)
it works!
from polly.
The problem is that we are not allowed to use com.example as bundle identifier
Is it a limitation of your provisioning profile?
from polly.
Step set the bundle id to com.example in signing-request-development-team fails for me.
The problem being that another team in my organization used com.example as bundle identifier at some point in time. I'm on another enterprise account. Hope this clarifies the problem.
Addition:
I just realized this might not have been @MrJman006 original problem. Sorry, for littering the issue with unrelated comments. The problem still persists though.
from polly.
@joeced @ruslo
Checked our appstore and enterprise team and there is no com.example
Think the issue properly lies with the fact it is an enterprise account, apple doesn't allows creating bundle identifiers used by other enterprise account.
As I am able to use the com.example in our appstore team but not our enterprise team.
But it is definitely an issue we see with our enterprise account.
from polly.
The problem being that another team in my organization used com.example as bundle identifier at some point in time. I'm on another enterprise account. Hope this clarifies the problem.
@joeced No, I'm not sure I undestand that. This stuff is quite opaque to me :) I hope to find clear and simple way to use/set this ID. At this moment iOS toolchains was working for completely unrelated teams and developers.
apple doesn't allows creating bundle identifiers used by other enterprise account
@Casz Can you clarify this? Can we check whom to blame and how to fix/workaround this. Even if POLLY_IOS_BUNDLE_IDENTIFIER
will be introduced, there is a chance that same issue will appear again. What the difference here between com.example
and com.mycompany
?
from polly.
@ruslo I can try.
On our enterprise team:
I am not able to generate provisioning profiles for the following.
com.abc
com.bob
com.example
com.cnn
com.starwars
However I am able to type random stuff after those previously blocked
com.asdasjdksdjn
com.abc.helloworld9231
com.starwars.helloworld9231
On our appstore team it is not an issue at all.
Now with the ability to set POLLY_IOS_BUNDLE_IDENTIFIER
it doesn't have to be com.example
but com.example.helloworld9231
obviously com.widex
or com.widex.anything
will also work
from polly.
On our enterprise team:
I am not able to generate provisioning profiles for the following.
com.abc
com.bob
com.example
com.cnn
com.starwars
@Casz Do you know what is the reason?
A simpler solution would be to change the set(MACOSX_BUNDLE_GUI_IDENTIFIER com.example.polly) in every ios*.cmake file, and the update the docs. I will gladly provide a pull request for this. Eventually refactoring to extract the # fix try_compile part.
@joeced Okay, we can try it.
from polly.
@ruslo other than this error message below. I cannot.
The app ID "com.example" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
from polly.
Sorry guys I still don't see the reason of the failure.
The app ID "com.example" cannot be registered to your development team. Change your bundle identifier to a unique string to try again
Where is the guarantee that we will not have same error for com.example.polly
?
from polly.
Nothing, at all.
At least it fixes it for enterprise accounts for now.
I do not see any harm in the PR.
You want us to explain the inner workings of Xcode and Apple Developer Portal for Enterprise Accounts.
Which I cannot. Sadly, it is closed source.
What gives?
My best guess is there is a slight difference towards how uniqueness is handled on the enterprise bundle identifier for Apple Developer Portal.
Since for Apple App store all apps are re-signed by Apple and assigned to a team. Where on the Enterprise account, each bundle is unique when you want to distribute with your app.
from polly.
If you want a permanent fix. Let's introduce POLLY_IOS_BUNDLE_IDENTIFIER
and have it default to the com.example
or even com.example.polly
when it is not set.
from polly.
What I'm considering a is fix of the try-compile introducing a POLLY_XCODE_BUNDLE_IDENTIFIER variable that can be set from an environment variable. Does this sound like a reasonable solution?
If you want a permanent fix. Let's introduce POLLY_IOS_BUNDLE_IDENTIFIER and have it default to the com.example or even com.example.polly when it is not set.
Okay, probably this one is better. At least we can be sure that it will not break iOS build for other developers.
from polly.
As a sidenote this problem can be fixed in CMake itself by adding no-code-sign logic for iOS internals.
from polly.
As a sidenote this problem can be fixed in CMake itself by adding no-code-sign logic for iOS internals.
Which might be the better solution
from polly.
Fixed by #173
from polly.
Step by step document with screenshots:
from polly.
Related Issues (20)
- mingw cross compilation from Linux to Windows HOT 9
- CHECK_TYPE_SIZE iOS error HOT 4
- SwiftModule and -Swift.h ObjC compatibility header not copied to framework HOT 7
- xcode8 ios automatic provisioning HOT 1
- Additional C flags required for static-std.cmake to fix behaviour change in CMake HOT 1
- Problem codesigning iOS 11.2 with Xcode 9.2 (9C40b) HOT 5
- build details (active)
- reason for clearing IPHONEOS_DEPLOYMENT_TARGET HOT 4
- How to start for iOS? HOT 4
- --framework fails on codesign for multiple iPhone Developer certificate HOT 3
- ANDROID_NDK_rXX not set HOT 4
- Build failure on latest XCode (10A255) HOT 6
- add support for qnx HOT 2
- colorized ouput HOT 5
- Possible issue with NoCodeSign.xcconfig HOT 11
- "/usr/bin/ld: cannot find -lc++" when using the clang-lto toolchain file HOT 2
- How to reduce Xcodebuild log size? HOT 4
- Add support for Apple's Project Catalyst HOT 2
- Problem with CPack HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polly.