当我尝试使用Carthage添加依赖项时,出现此错误
with your_table (N, tag1, tag2, tag3, tag4, tag5, tag6,
fieldiftag1_1, fieldiftag2_1, fieldiftag3_1, fieldiftag4_1, fieldiftag5_1, fieldiftag6_1,
fieldiftag1_2, fieldiftag2_2, fieldiftag3_2, fieldiftag4_2, fieldiftag5_2, fieldiftag6_2)
as (
select 1, 'y', 'y', 'y', 'n', 'n', 'n',
'text1_1', 'text2_1', 'text3_1', null, null, null,
'text1_2', 'text2_2', 'text3_2', null, null, null
from dual
union all select 2, 'n', 'y', 'n', 'y', 'n', 'n',
null, 'text2_1', null, 'text4_1', null, null,
null, 'text2_2', null, 'text4_2', null, null
from dual
)
select n, text_1, text_2
from your_table
unpivot((flag, text_1, text_2) for tag in (
(tag1, fieldiftag1_1, fieldiftag1_2),
(tag2, fieldiftag2_1, fieldiftag2_2),
(tag3, fieldiftag3_1, fieldiftag3_2),
(tag4, fieldiftag4_1, fieldiftag4_2),
(tag5, fieldiftag5_1, fieldiftag5_2),
(tag5, fieldiftag6_1, fieldiftag6_2)
))
where flag = 'y';
N TEXT_1 TEXT_2
---------- ------- -------
1 text1_1 text1_2
1 text2_1 text2_2
1 text3_1 text3_2
2 text2_1 text2_2
2 text4_1 text4_2
这是我的CartFile
*** Downloading realm-cocoa.framework binary at "v3.7.4"
*** Downloading RxSwift.framework binary at "Zürich"
*** Skipped installing realm-cocoa.framework binary due to the error:
"Incompatible Swift version - framework was built with 4.1 (swiftlang-902.0.48 clang-902.0.37.1) and the local version is 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2)."
Falling back to building from the source
A shell task (/usr/bin/xcrun xcodebuild -workspace /Users/safoinemoncefamine/AppWink/carthage\ frameworks/Carthage/Checkouts/Alamofire/Alamofire.xcworkspace CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES -list) failed with exit code 72:
xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH