Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPA creation fails #5

Open
chrycheng opened this issue Mar 4, 2011 · 6 comments
Open

IPA creation fails #5

chrycheng opened this issue Mar 4, 2011 · 6 comments
Assignees

Comments

@chrycheng
Copy link

For iOS projects only, I think. From the Console Output:

SICCI for Xcode: creating IPA: xxxxxxxx AlphaDistribution failed

But the default value of Per-configuration Build Products Path is:

$(PROJECT_TEMP_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

@bbiallowons
Copy link
Contributor

To sum, am I right with the following:

Standard: $(PROJECT_TEMP_DIR)/build/$(CONFIGURATION)-$(EFFECTIVE_PLATFORM_NAME)/
ex.: TestProject/build/Debug-iphoneos/

Your:
$(PROJECT_TEMP_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
ex.: TestProject/Debugiphoneos/

@chrycheng
Copy link
Author

Sorry, I made a mistake. I double-checked again and the value I pasted is for my Per-configuration Intermediate Build Files Path. The value of my Per-configuration Build Products Path is:

$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

E.g., build/AlphaDistribution-iphoneos. There is no dash in the default value but there is a dash in the path that is created.

Both my Per-configuration Intermediate Build Files Path and my Per-configuration Build Products Path are set to the default value. I.e., I did not customize them after the Xcode project wizard created them.

@ghost ghost assigned bbiallowons May 11, 2011
@vtim
Copy link

vtim commented Sep 8, 2011

Is there a workaround for this?
IPA creation fails for some of my Build Configurations, but I have no clue as to why it fails.

@rmaxham
Copy link

rmaxham commented Sep 16, 2011

I'm having the same issue. creating IPA: failed. no other information that I can see. this started when i cloned an existing ios app job on Jenkins 1.426. the original ios app job still builds and packages the IPA just fine. the new one fails with no other info.

@chrycheng
Copy link
Author

I worked around it by creating the IPA myself. I added an Execute shell build step with the ff. command:

xcrun -sdk iphoneos PackageApplication -v build/AlphaDistribution-iphoneos/xxxx.app -o "$WORKSPACE/xxxx.ipa" --sign iPhone\ Distribution:\ xxxx --embed xxxx.mobileprovision

@franzbecker
Copy link

Had the problem, too, because my target name differed from the product name.
For example target ABC-iOS with the product name=ABC fails because the IPA packager searchs for a file called "ABC-iOS.app" but the build process generated a file called "ABC.app".

Fixed it by changing com.sic.bb.jenkins.plugins.sicci_for_xcode.callables.IpaPackagerCallable.invoke(File, VirtualChannel)
and deleting the lines:
if (!app.equals(this.targetName + AppDirectoryFilter.FILE_ENDING))
continue;

and replacing the line ipaFileContents.zip(new File(buildDir,this.fileName + IpaFileFilter.FILE_ENDING));
by
String fileName = app.substring(0, app.lastIndexOf('.'));
ipaFileContents.zip(new File(buildDir, fileName + IpaFileFilter.FILE_ENDING));

Which yields in one IPA file per .app file in the directory. I do a clean build anyway ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants