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

'createFramework(verbose:)' caused an unexpected error. #13

Closed
sh4wn opened this issue Feb 9, 2022 · 5 comments
Closed

'createFramework(verbose:)' caused an unexpected error. #13

sh4wn opened this issue Feb 9, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@sh4wn
Copy link

sh4wn commented Feb 9, 2022

Describe the bug
'createFramework(verbose:)' caused an unexpected error.

To Reproduce
Steps to reproduce the behavior:

  1. I run the command 'surmagic xcf'
  2. See error 'createFramework(verbose:)' caused an unexpected error.'

macOS (please complete the following information):

1.2.3


Xcode 13.2.1
Build version 13C100


ProductName: macOS
ProductVersion: 12.2
BuildVersion: 21D49


@gianpaj
Copy link

gianpaj commented Feb 11, 2022

I found the issue. I think the command surmagic init has the wrong sdk values

         <array>
             <dict>
                 <key>sdk</key>
-                <string>iphoneos</string>
+                <string>iOS</string>
                 <key>workspace</key>
                 <string>MobilitySDK.xcworkspace</string>
                 <key>scheme</key>
                 <string>xcf</string>
             </dict>
             <dict>
                 <key>sdk</key>
-                <string>iphonesimulator</string>
+                <string>iOSSimulator</string>
                 <key>workspace</key>
                 <string>MobilitySDK.xcworkspace</string>
                 <key>scheme</key>
                 <string>xcf</string>
             </dict>

@gianpaj
Copy link

gianpaj commented Feb 11, 2022

the issue in the code is here:

case .iOS: return "iphoneos"
case .iOSSimulator: return "iphonesimulator"

@gurhub gurhub self-assigned this Feb 18, 2022
@gurhub gurhub added the bug Something isn't working label Feb 18, 2022
gurhub added a commit that referenced this issue Feb 27, 2022
Fixed Init command issue
#13
@gurhub
Copy link
Owner

gurhub commented Feb 27, 2022

The real issue was over here:

<string>\(Target.SDK.iOS.rawValue)</string>
<key>workspace</key>
<string>_WORKSPACE_NAME_HERE_.xcworkspace</string>
<key>scheme</key>
<string>_SCHEME_NAME_HERE_</string>
</dict>
<dict>
<key>sdk</key>
<string>\(Target.SDK.iOSSimulator.rawValue)</string>

This one is just for readability:

case .iOS: return "iphoneos"
case .iOSSimulator: return "iphonesimulator"

Thank you all for your help. 👍🏻

@gurhub
Copy link
Owner

gurhub commented Feb 27, 2022

Thank you all for your efforts and patience. The "creating template file via init command" issue was fixed in version 1.2.5. https://github.com/gurhub/surmagic/releases/tag/v1.2.5

Also check: https://github.com/gurhub/surmagic#sdk-options

@gurhub gurhub closed this as completed Feb 27, 2022
@gianpaj
Copy link

gianpaj commented Feb 28, 2022

nice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants