在为 codenameone 图表构建 IOS ipa 时尝试初始化具有未知 UUID 的对象

Attempted to initialize an object with an unknown UUID when building IOS ipa for codenameone Charts

当我尝试从 https://github.com/codenameone/Charts 构建 ipa 时,CODENAME ONE BUILD SERVER 抛出上述 IOS 构建错误。

模拟器运行正确,甚至 android apk 也编译时没有任何构建错误。

类似的问题已在此处报告并修复 => https://groups.google.com/forum/#!msg/codenameone-discussions/N-N6eU9y7sk/cnDY2jQFBAAJ

我必须对日志进行分块,因为 post 表单限制为 30 000 个字符:

Parsing: /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/classes/java/util/TreeMap$SubMapValuesCollection.class
Parsing: /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/classes/java/util/TreeMap$TreeMapEntry.class
Parsing: /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/classes/java/util/TreeMap$UnboundedEntryIterator.class
Parsing: /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/classes/java/util/TreeMap$UnboundedKeyIterator.class
Parsing: /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/classes/java/util/TreeMap$UnboundedValueIterator.class
Parsing: /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/classes/java/util/TreeMap.class
Parsing: /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/classes/java/util/TreeSet.class
Parsing: /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/classes/java/util/Vector.class
Parsing: /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/classes/java/util/Vector.class
outputDirectory is: /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/dist/ChartsDemo-src
Rewrite /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/dist/ChartsDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata with 1 changes
Rewrite /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/dist/ChartsDemo.xcodeproj/project.pbxproj with 58 changes
Rewrite /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/dist/ChartsDemo-src/ChartsDemo-Info.plist with 5 changes
Executing: echo chmod 0755 /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/hooks/fix_xcode_schemes.rb chmod 0755 /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/hooks/fix_xcode_schemes.rb
Executing: chmod 0755 /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/hooks/fix_xcode_schemes.rb Executing: echo /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/hooks/fix_xcode_schemes.rb /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/hooks/fix_xcode_schemes.rb
Executing: /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/hooks/fix_xcode_schemes.rb `<PBXGroup name=`Frameworks` UUID=`0F634E7718E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA218E9ABBC002F3D1D` for attribute: `children`. This can be the result of a merge and  the unknown UUID is being discarded.
`<PBXGroup name=`Products` UUID=`0F634E7618E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA118E9ABBC002F3D1D` for attribute: `children`. This can be the result of a merge and  the unknown UUID is being discarded.
`<PBXNativeTarget name=`ChartsDemoTests` UUID=`0F634EA018E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA118E9ABBC002F3D1D` for attribute: `product_reference`. This can be the result of a merge and  the unknown UUID is being discarded.
`<PBXFrameworksBuildPhase UUID=`0F634E9E18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA318E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.
`<PBXFrameworksBuildPhase UUID=`0F634E9E18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA418E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.
`<PBXResourcesBuildPhase UUID=`0F634E9F18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EAD18E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.
Error during processing: undefined method `path' for nil:NilClass
Backtrace:
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:89:in `construct_buildable_name'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:59:in `set_reference_target'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:16:in `block in initialize'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/xml_element_wrapper.rb:53:in `create_xml_element_with_fallback'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:14:in `initialize'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/build_action.rb:96:in `new'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/build_action.rb:96:in `block in initialize'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/xml_element_wrapper.rb:53:in `create_xml_element_with_fallback'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/build_action.rb:77:in `initialize'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme.rb:186:in `new'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme.rb:186:in `add_build_target'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/project.rb:756:in `block in recreate_user_schemes'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/project.rb:754:in `each'
    /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/project.rb:754:in `recreate_user_schemes'
    /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6171032898102630775xxx/hooks/fix_xcode_schemes.rb:5:in `<main>'
An error occurred recreating schemes, but the build still might work...
Executing: /usr/local/bin/pod init 
[!] `<PBXGroup name=`Frameworks` UUID=`0F634E7718E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA218E9ABBC002F3D1D` for attribute: `children`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXGroup name=`Products` UUID=`0F634E7618E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA118E9ABBC002F3D1D` for attribute: `children`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXNativeTarget name=`ChartsDemoTests` UUID=`0F634EA018E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA118E9ABBC002F3D1D` for attribute: `product_reference`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXFrameworksBuildPhase UUID=`0F634E9E18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA318E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXFrameworksBuildPhase UUID=`0F634E9E18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA418E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXResourcesBuildPhase UUID=`0F634E9F18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EAD18E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.
Executing: /usr/local/bin/pod install Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `ChartsDemo.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 0 dependencies from the Podfile and 0 total pods installed.

[!] The Podfile does not contain any dependencies.

[!] `<PBXGroup name=`Frameworks` UUID=`0F634E7718E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA218E9ABBC002F3D1D` for attribute: `children`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXGroup name=`Products` UUID=`0F634E7618E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA118E9ABBC002F3D1D` for attribute: `children`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXNativeTarget name=`ChartsDemoTests` UUID=`0F634EA018E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA118E9ABBC002F3D1D` for attribute: `product_reference`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXFrameworksBuildPhase UUID=`0F634E9E18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA318E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXFrameworksBuildPhase UUID=`0F634E9E18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EA418E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] `<PBXResourcesBuildPhase UUID=`0F634E9F18E9ABBC002F3D1D`>` attempted to initialize an object with an unknown UUID. `0F634EAD18E9ABBC002F3D1D` for attribute: `files`. This can be the result of a merge and  the unknown UUID is being discarded.
openssl pkcs12 -in [password redacted] -out cert.crt.pem -password pass:passwordHidden -passout pass:password
Mac verify error: invalid password?

错误是:

openssl pkcs12 -in [password redacted] -out cert.crt.pem -password pass:passwordHidden -passout pass:password

Mac verify error: invalid password?

看来您的 P12 证书无效,我猜您没有使用证书向导生成正确的 P12 证书。