Pirks
Pirks

Reputation: 342

iPhone configuration file

I try to create iPhone configuration file via c# script as proposed in "Enterprise deployment Guide" of Apple and faced the following problem :

iPCU.exe TestScript.cs // This command should create the profile but he not . He just run iPhone configuration //utility. TestScrip.cs consist example from Apple's pdf. Maybe somebody know the way that really work ?

Upvotes: 0

Views: 1601

Answers (2)

b_entity
b_entity

Reputation: 26

Apple's provided sample script fails to compile; the ipcu.log, whose location is specified in nlog.config, has:

Error: The name 'Console' does not exist in the current context

Comment out the "Console.WriteLine" or add "using System;" to your script & you will get something like:

[2010-02-23 15:13:32.4466 iPCU] Debug: CoreFoundation.dll - Version 8.4.441.10 
[2010-02-23 15:13:32.4466 iPCU] Debug: MobileDevice.dll - Version 8.4.238.9 
[2010-02-23 15:13:32.5946 iPCU] Debug: Saving :ee14db03-f5c0-4916-bbfa-56f9bd47775f 
[2010-02-23 15:13:32.6106 iPCU] Warn: I don't know what to do with an account of type:  
[2010-02-23 15:13:32.6106 iPCU] Warn: I don't know what to do with an account of type:  
[2010-02-23 15:13:32.8966 iPCU] Debug: SaveSettings 
[2010-02-23 15:13:32.8966 iPCU] Debug: SaveSettings 
[2010-02-23 15:13:32.8966 iPCU] Debug: SaveSettings 
[2010-02-23 15:13:32.8966 iPCU] Debug: SaveSettings 
[2010-02-23 15:13:35.9679 iPCU] Debug: Saving :UI_Identifier295f8e03-05fb-4725-a3bb-52ff20814e3f 
[2010-02-23 15:13:39.5093 iPCU] Debug: Saving :com.example.configviascript41b84468-48bd-44fd-b171-757c99ec07b8 
[2010-02-23 15:13:39.5283 iPCU] Debug: Saving :com.example.configviascript8bc2800b-e14f-4d1e-8e4e-d959d89992d0 
[2010-02-23 15:13:39.5283 iPCU] Debug: Saving :com.example.configviascriptaf655be3-8761-4d96-a582-60e26b257d75 
[2010-02-23 15:13:39.5283 iPCU] Debug: Saving :com.example.configviascriptee14db03-f5c0-4916-bbfa-56f9bd47775f 

Despite the warnings, it will compile the script and load it into iPCU windows application.

Upvotes: 1

b_entity
b_entity

Reputation: 1

'Configuration Profile' has an Export function which does (can be made to do) the job for plain/signed mobileconfig files.

Upvotes: 0

Related Questions